From 3e73caa77e336df1bf23bfa59be0e455eaf7a58b Mon Sep 17 00:00:00 2001 From: yimmyj Date: Wed, 3 Apr 2024 17:05:15 -0700 Subject: [PATCH] push --- repositories/EventRepository.ts | 1 - services/EventService.ts | 3 ++- tests/event.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/repositories/EventRepository.ts b/repositories/EventRepository.ts index e2df592c..f2324ae1 100644 --- a/repositories/EventRepository.ts +++ b/repositories/EventRepository.ts @@ -67,4 +67,3 @@ export class EventRepository extends BaseRepository { return query; } } - diff --git a/services/EventService.ts b/services/EventService.ts index a8f62817..b8455c95 100644 --- a/services/EventService.ts +++ b/services/EventService.ts @@ -70,7 +70,8 @@ export default class EventService { if (!currentEvent) throw new NotFoundError('Event not found'); if (changes.attendanceCode !== currentEvent.attendanceCode) { const isAvailableAttendanceCode = await eventRepository.isAvailableAttendanceCode( - changes.attendanceCode, changes.start, changes.end); + changes.attendanceCode, changes.start, changes.end, + ); if (!isAvailableAttendanceCode) { throw new UserError('There is a conflicting event with the same attendance code'); } diff --git a/tests/event.test.ts b/tests/event.test.ts index cbc9353c..94dabc9a 100644 --- a/tests/event.test.ts +++ b/tests/event.test.ts @@ -265,4 +265,4 @@ describe('event deletion', () => { expect(repositoryEvent).toEqual(event); }); -}); \ No newline at end of file +});