Skip to content

Commit

Permalink
update function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
choden-dev committed Aug 2, 2024
1 parent 30a9225 commit e5dd744
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
describe("BookingHistoryService integration tests", () => {})
8 changes: 5 additions & 3 deletions server/src/data-layer/services/BookingHistoryService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
await db.bookingHistory.add(event)
}

Expand All @@ -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<void> {
await db.bookingHistory.add(event)
}

Expand All @@ -36,7 +38,7 @@ class BookingHistoryService {
*/
public async addAvailibilityChangeEvent(
event: BookingAvailabilityChangeEvent
) {
): Promise<void> {
await db.bookingHistory.add(event)
}

Expand Down

0 comments on commit e5dd744

Please sign in to comment.