Skip to content

Commit

Permalink
Record decline reason
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Oct 8, 2024
1 parent 10c72dc commit ab017c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions booking-app/components/src/server/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const decline = async (id: string, email: string, reason?: string) => {
clientUpdateDataByCalendarEventId(TableNames.BOOKING_STATUS, id, {
declinedAt: Timestamp.now(),
declinedBy: email,
declineReason: reason || null,
});

const doc = await clientGetDataByCalendarEventId(
Expand Down

0 comments on commit ab017c7

Please sign in to comment.