diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-04-06 21:06:02 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-04-07 10:20:00 +0300 |
commit | 12d31f8e07a149794440e5d286617fd1682a6625 (patch) | |
tree | 7034b18426941b15d3de8ffa25ca995763f628c0 /src | |
parent | c9d343725f159a897228e0396eb552a4bbceaf9e (diff) |
Proceed with deletion if object is missing on server
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r-- | src/store/outbox/actions.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/store/outbox/actions.js b/src/store/outbox/actions.js index 9f4130273..0d95890a1 100644 --- a/src/store/outbox/actions.js +++ b/src/store/outbox/actions.js @@ -33,7 +33,15 @@ export default { }, async deleteMessage({ commit }, { id }) { - await OutboxService.deleteMessage(id) + try { + await OutboxService.deleteMessage(id) + } catch (e) { + if (e.response?.status === 404) { + // This is fine + } else { + throw e + } + } commit('deleteMessage', { id }) }, |