Skip to content

Commit

Permalink
feat: throw UnknownException in meet up EventHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiwon-Woo committed Jan 24, 2024
1 parent a5bfda4 commit 3ac3a5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/meetups/meetup.events-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { MeetupRegisteredEvent } from './event/meetup-registered.event';
import { MeetupUnregisteredEvent } from './event/meetup-unregistered.event';
import { Logger } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { UnknownException } from 'src/common/exception/unknown.exception';

@EventsHandler(MeetupEvent)
export class MeetupEventsHandler implements IEventHandler<MeetupEvent> {
Expand Down Expand Up @@ -62,7 +63,7 @@ export class MeetupEventsHandler implements IEventHandler<MeetupEvent> {

await this.slackService.postMessage(message!);
} catch (e) {
this.logger.error('[handle]', e);
throw new UnknownException(e);
}
}
}

0 comments on commit 3ac3a5c

Please sign in to comment.