fix recoup error handling

This commit is contained in:
Florian Dold 2021-12-01 12:23:17 +01:00
parent 718595a572
commit dbbe1b0a61
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -118,8 +118,8 @@ async function putGroupAsFinished(
recoupGroup.scheduleRefreshCoins.map((x) => ({ coinPub: x })), recoupGroup.scheduleRefreshCoins.map((x) => ({ coinPub: x })),
RefreshReason.Recoup, RefreshReason.Recoup,
); );
processRefreshGroup(ws, refreshGroupId.refreshGroupId).then((e) => { processRefreshGroup(ws, refreshGroupId.refreshGroupId).catch((e) => {
console.error("error while refreshing after recoup", e); logger.error(`error while refreshing after recoup ${e}`);
}); });
} }
} }