Skip to content

Commit

Permalink
Put calling updateInstantPowerBalances() in try..catch...
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Oct 7, 2023
1 parent 5e966de commit 804ef4c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/services/instantBoostingServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ import {

export const updateInstantBoosting = async (): Promise<void> => {
logger.debug('updateInstantBoosting() has been called');
await updateInstantPowerBalances();
try {
await updateInstantPowerBalances();
} catch (e) {
logger.error(
'updateInstantBoosting() calling updateInstantPowerBalances() error',
e,
);
}
await refreshProjectInstantPowerView();
// await refreshProjectUserInstantPowerView();
};
Expand Down

0 comments on commit 804ef4c

Please sign in to comment.