From 6bf6cce720bbabba585939d595429967544eb190 Mon Sep 17 00:00:00 2001 From: Jonas Lochmann Date: Mon, 29 Nov 2021 01:00:00 +0100 Subject: [PATCH] Fix call to shouldRetryWithException --- src/function/sync/apply-actions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/function/sync/apply-actions/index.ts b/src/function/sync/apply-actions/index.ts index 151666e..17255bf 100644 --- a/src/function/sync/apply-actions/index.ts +++ b/src/function/sync/apply-actions/index.ts @@ -104,7 +104,7 @@ export const applyActionsFromDevice = async ({ database, request, websocket, con } }) } catch (ex) { - if (shouldRetryWithException(ex, database)) { + if (shouldRetryWithException(database, ex)) { eventHandler.countEvent('applyActionsFromDevice got exception which should cause retry') throw ex