retry max three times if update labels is conflicted

This commit is contained in:
Hongbo Wu 2022-03-18 10:39:11 +08:00
parent 9d8d2e40d7
commit 77050905a5

View file

@ -238,6 +238,7 @@ export const addLabelInPage = async (
},
},
refresh: ctx.refresh,
retry_on_conflict: 3,
})
return body.result === 'updated'