Skip to content

Commit

Permalink
Merge pull request #459 from ITPNYU/riho/record_decline_reason
Browse files Browse the repository at this point in the history
Record decline reason
  • Loading branch information
rlho authored Oct 8, 2024
2 parents 10c72dc + ab017c7 commit d0a51e9
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 d0a51e9

Please sign in to comment.