From e5dd7443a68397856a561f12552f170d24913936 Mon Sep 17 00:00:00 2001 From: bcho892 Date: Fri, 2 Aug 2024 19:34:10 +1200 Subject: [PATCH] update function signatures --- .../src/data-layer/services/BookingHistoryService.test.ts | 1 + server/src/data-layer/services/BookingHistoryService.ts | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 server/src/data-layer/services/BookingHistoryService.test.ts diff --git a/server/src/data-layer/services/BookingHistoryService.test.ts b/server/src/data-layer/services/BookingHistoryService.test.ts new file mode 100644 index 000000000..a4f43c7e2 --- /dev/null +++ b/server/src/data-layer/services/BookingHistoryService.test.ts @@ -0,0 +1 @@ +describe("BookingHistoryService integration tests", () => {}) diff --git a/server/src/data-layer/services/BookingHistoryService.ts b/server/src/data-layer/services/BookingHistoryService.ts index 49bf0839c..12a9a7e01 100644 --- a/server/src/data-layer/services/BookingHistoryService.ts +++ b/server/src/data-layer/services/BookingHistoryService.ts @@ -16,7 +16,9 @@ class BookingHistoryService { * * @param event the required parameters defined by {@link BookingDeletedEvent} */ - public async addBookingDeletedEvent(event: BookingDeletedEvent) { + public async addBookingDeletedEvent( + event: BookingDeletedEvent + ): Promise { await db.bookingHistory.add(event) } @@ -25,7 +27,7 @@ class BookingHistoryService { * * @param event the required parameters defined by {@link BookingAddedEvent} */ - public async addBookingAddedEvent(event: BookingAddedEvent) { + public async addBookingAddedEvent(event: BookingAddedEvent): Promise { await db.bookingHistory.add(event) } @@ -36,7 +38,7 @@ class BookingHistoryService { */ public async addAvailibilityChangeEvent( event: BookingAvailabilityChangeEvent - ) { + ): Promise { await db.bookingHistory.add(event) }