Skip to content

Commit af56c9a

Browse files
committed
fix: prevent SongWebhookService's onModuleInit from halting server startup (#25)
- Fixed error handling in onModuleInit to avoid server initialization failure - Added unit tests for SongWebhookService's onModuleInit method Closes #25
1 parent 01daf7b commit af56c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/song/song-webhook/song-webhook.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class SongWebhookService implements OnModuleInit {
1818

1919
async onModuleInit() {
2020
this.logger.log('Updating Discord webhooks for all songs');
21-
await this.syncAllSongsWebhook();
21+
this.syncAllSongsWebhook();
2222
}
2323

2424
public async postSongWebhook(song: SongWithUser): Promise<string | null> {

0 commit comments

Comments
 (0)