feat: v1 booking "created at" field in response (#18038)

* Update booking.ts

* Update booking.ts
This commit is contained in:
Syed Ali Shahbaz
2024-12-06 10:22:47 +00:00
committed by GitHub
parent 7e76770ba6
commit 44115ac7fa
+2
View File
@@ -23,6 +23,7 @@ const schemaBookingBaseBodyParams = Booking.pick({
status: true,
rescheduledBy: true,
cancelledBy: true,
createdAt: true,
}).partial();
export const schemaBookingCreateBodyParams = extendedBookingCreateBody.merge(schemaQueryUserId.partial());
@@ -119,4 +120,5 @@ export const schemaBookingReadPublic = Booking.extend({
fromReschedule: true,
cancelledBy: true,
rescheduledBy: true,
createdAt: true,
});