chore: Integrate add guests booking audit (#26568)
* chore: Integrate add guests booking audit Co-Authored-By: [email protected] <[email protected]> * chore: Add actionSource parameter to support API_V2 audit logging Co-Authored-By: [email protected] <[email protected]> * refactor: update attendee audit action service to use new email schema - Modified the `AttendeeAddedAuditActionService` to replace the old attendees schema with a new `emailSchema` for better validation. - Adjusted the `addGuestsHandler` to pass the action source explicitly and updated the audit logging to reflect the new structure. - Cleaned up the code for better readability and consistency. * test: add happy path integration test for attendee added action Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
b517adfb66
commit
c9bb03b602
5 files changed
+206
-60
No files matched your search
@@ -33,6 +33,7 @@ export class BookingGuestsService_2024_08_13 {
|
||||
ctx: { user },
|
||||
input: { bookingId: booking.id, guests: input.guests },
|
||||
emailsEnabled,
|
||||
actionSource: "API_V2",
|
||||
});
|
||||
if (res.message === "Guests added") {
|
||||
return await this.bookingsService.getBooking(bookingUid, user);
|
||||
|
||||
Reference in new issue
Block a user