fix(SW-2547): filter out cities and hotel with isPublished=false

This commit is contained in:
Matilda Landström
2025-05-06 11:00:45 +02:00
committed by Michael Zetterberg
parent e38fceb237
commit 6a2bb5ac2d
3 changed files with 4 additions and 0 deletions

View File

@@ -479,6 +479,7 @@ export const locationsSchema = z.object({
.transform((data) =>
data
.filter((node) => !!node)
.filter((node) => !!node.isPublished)
.filter((node) => {
if (node.type === "hotels") {
if (!node.operaId) {