fix: add all pages as possible references

This commit is contained in:
Christel Westerberg
2024-12-27 09:25:38 +01:00
parent 97f11a2488
commit c42a03803c
42 changed files with 319 additions and 74 deletions

View File

@@ -26,6 +26,7 @@ export const dynamicContentSchema = z.object({
pageLinks.contentPageSchema,
pageLinks.hotelPageSchema,
pageLinks.loyaltyPageSchema,
pageLinks.collectionPageSchema,
])
.transform((data) => {
const link = pageLinks.transform(data)
@@ -64,6 +65,7 @@ export const dynamicContentRefsSchema = z.object({
pageLinks.contentPageRefSchema,
pageLinks.hotelPageRefSchema,
pageLinks.loyaltyPageRefSchema,
pageLinks.collectionPageRefSchema,
]),
})
),