Skip to content

Commit 75e7e7d

Browse files
committed
fix: Added return statement in error handling of webhookCallback
1 parent 9f9d3af commit 75e7e7d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/bot/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export class CopBot {
5757
await webhookCallback(this._bot, 'express')(req, res);
5858
} catch (error: any) {
5959
logger.error(`Error processing update:${error}`);
60+
return;
6061
}
6162
});
6263
});

0 commit comments

Comments
 (0)