From 44115ac7fac305c75b37c139abe618c694e8a732 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:22:47 +0400 Subject: [PATCH] feat: v1 booking "created at" field in response (#18038) * Update booking.ts * Update booking.ts --- apps/api/v1/lib/validations/booking.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/api/v1/lib/validations/booking.ts b/apps/api/v1/lib/validations/booking.ts index f85cc195c1..585efbdc67 100644 --- a/apps/api/v1/lib/validations/booking.ts +++ b/apps/api/v1/lib/validations/booking.ts @@ -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, });