Allow booking responses to have the data from variantsConfig (#8718)

pull/8799/head
Hariom Balhara 2023-05-10 09:29:51 +05:30 committed by GitHub
parent d6fb0df64f
commit b08a62d30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ export const bookingResponse = z.union([
optionValue: z.string(),
value: z.string(),
}),
// For variantsConfig case
z.record(z.string()),
]);
export const bookingResponsesDbSchema = z.record(bookingResponse);