diff --git a/keyserver/src/updaters/olm-account-updater.js b/keyserver/src/updaters/olm-account-updater.js --- a/keyserver/src/updaters/olm-account-updater.js +++ b/keyserver/src/updaters/olm-account-updater.js @@ -13,7 +13,7 @@ async function fetchCallUpdateOlmAccount( olmAccountType: 'content' | 'notifications', - callback: (account: OlmAccount) => Promise, + callback: (account: OlmAccount, picklingKey: string) => Promise, ): Promise { const isContent = olmAccountType === 'content'; let retriesLeft = maxOlmAccountUpdateRetriesCount; @@ -43,7 +43,7 @@ picklingKey, pickledAccount, }); - const result = await callback(account); + const result = await callback(account, picklingKey); const updatedAccount = account.pickle(picklingKey); const [transactionResult] = await dbQuery(