From 89d16c71ffa40bb8e630fad19d052cbb5405330d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Tue, 2 Sep 2025 08:36:41 +0000 Subject: [PATCH] Merged in feat/SW-3364-destination-list (pull request #2744) feat(SW-3364): update destination list * feat(SW-3364): update destination list Approved-by: Erik Tiekstra --- .../destinationOverviewPage/destinations-da.json | 11 ++--------- .../destinationOverviewPage/destinations-de.json | 16 +--------------- .../destinationOverviewPage/destinations-en.json | 9 +-------- .../destinationOverviewPage/destinations-fi.json | 11 ++--------- .../destinationOverviewPage/destinations-no.json | 11 ++--------- .../destinationOverviewPage/destinations-sv.json | 11 ++--------- .../destinationOverviewPage/query.ts | 3 +-- 7 files changed, 11 insertions(+), 61 deletions(-) diff --git a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-da.json b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-da.json index adbcb8b82..2486f4b21 100644 --- a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-da.json +++ b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-da.json @@ -107,7 +107,7 @@ { "country": "Finland", "countryUrl": "/da/destinationer/finland", - "numberOfHotels": 52, + "numberOfHotels": 51, "cities": [ { "id": "5e6afbbc-c2f4-4506-b770-230f9cab70d1", @@ -140,13 +140,6 @@ "hotelCount": 16, "url": "/da/destinationer/finland/helsinki" }, - { - "id": "92edb3ae-1174-4c77-99bd-de5919abb927", - "name": "Imatra", - "hotelIds": ["696"], - "hotelCount": 1, - "url": "/da/destinationer/finland/imatra" - }, { "id": "8fea27c8-ab24-4cb5-a8ab-03f422aed8de", "name": "Hyvinkää", @@ -499,7 +492,7 @@ { "id": "d13dcbb3-3ff9-44b9-b2e6-9ce880722fdf", "name": "Tromsø", - "hotelIds": ["310", "362", "796"], + "hotelIds": ["362", "310", "796"], "hotelCount": 3, "url": "/da/destinationer/norge/tromso" }, diff --git a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-de.json b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-de.json index d43bb47f4..a33714ea2 100644 --- a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-de.json +++ b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-de.json @@ -39,13 +39,6 @@ "hotelCount": 1, "url": "/de/reiseziele/deutschland/nurnberg" }, - { - "id": "3003ba64-db0e-4426-ac2e-4615f182ea32", - "name": "Stuttgart", - "hotelIds": [], - "hotelCount": 0, - "url": "/de/reiseziele/deutschland/stuttgart" - }, { "id": "bb6dc0bf-9ecd-419b-97ce-9507ed68d445", "name": "Stuttgart", @@ -163,7 +156,7 @@ { "country": "Finnland", "countryUrl": "/de/reiseziele/finnland", - "numberOfHotels": 52, + "numberOfHotels": 51, "cities": [ { "id": "5e6afbbc-c2f4-4506-b770-230f9cab70d1", @@ -196,13 +189,6 @@ "hotelCount": 16, "url": "/de/reiseziele/finnland/helsinki" }, - { - "id": "92edb3ae-1174-4c77-99bd-de5919abb927", - "name": "Imatra", - "hotelIds": ["696"], - "hotelCount": 1, - "url": "/de/reiseziele/finnland/imatra" - }, { "id": "8fea27c8-ab24-4cb5-a8ab-03f422aed8de", "name": "Hyvinkää", diff --git a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-en.json b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-en.json index 2711a8835..5e814210b 100644 --- a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-en.json +++ b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-en.json @@ -107,7 +107,7 @@ { "country": "Finland", "countryUrl": "/en/destinations/finland", - "numberOfHotels": 52, + "numberOfHotels": 51, "cities": [ { "id": "12e3e8c5-2ed4-461d-8a92-92e4612a486e", @@ -154,13 +154,6 @@ "hotelCount": 1, "url": "/en/destinations/finland/hyvinkaa" }, - { - "id": "92edb3ae-1174-4c77-99bd-de5919abb927", - "name": "Imatra", - "hotelIds": ["696"], - "hotelCount": 1, - "url": "/en/destinations/finland/imatra" - }, { "id": "a43392b9-928d-466d-a54f-8c4f50623b0f", "name": "Kemi", diff --git a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-fi.json b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-fi.json index 338f08cc6..565d638f1 100644 --- a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-fi.json +++ b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-fi.json @@ -2,7 +2,7 @@ { "country": "Suomi", "countryUrl": "/fi/kohteet/suomi", - "numberOfHotels": 52, + "numberOfHotels": 51, "cities": [ { "id": "5e6afbbc-c2f4-4506-b770-230f9cab70d1", @@ -35,13 +35,6 @@ "hotelCount": 16, "url": "/fi/kohteet/suomi/helsinki" }, - { - "id": "92edb3ae-1174-4c77-99bd-de5919abb927", - "name": "Imatra", - "hotelIds": ["696"], - "hotelCount": 1, - "url": "/fi/kohteet/suomi/imatra" - }, { "id": "8fea27c8-ab24-4cb5-a8ab-03f422aed8de", "name": "Hyvinkää", @@ -387,7 +380,7 @@ { "id": "d13dcbb3-3ff9-44b9-b2e6-9ce880722fdf", "name": "Tromssa", - "hotelIds": ["310", "362", "796"], + "hotelIds": ["362", "310", "796"], "hotelCount": 3, "url": "/fi/kohteet/norja/tromssa" }, diff --git a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-no.json b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-no.json index e2e0fa4c3..3c30cbfa6 100644 --- a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-no.json +++ b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-no.json @@ -202,7 +202,7 @@ { "id": "d13dcbb3-3ff9-44b9-b2e6-9ce880722fdf", "name": "Tromsø", - "hotelIds": ["310", "362", "796"], + "hotelIds": ["362", "310", "796"], "hotelCount": 3, "url": "/no/destinasjoner/norge/tromso" }, @@ -386,7 +386,7 @@ { "country": "Finland", "countryUrl": "/no/destinasjoner/finland", - "numberOfHotels": 52, + "numberOfHotels": 51, "cities": [ { "id": "5e6afbbc-c2f4-4506-b770-230f9cab70d1", @@ -419,13 +419,6 @@ "hotelCount": 16, "url": "/no/destinasjoner/finland/helsinki" }, - { - "id": "92edb3ae-1174-4c77-99bd-de5919abb927", - "name": "Imatra", - "hotelIds": ["696"], - "hotelCount": 1, - "url": "/no/destinasjoner/finland/imatra" - }, { "id": "8fea27c8-ab24-4cb5-a8ab-03f422aed8de", "name": "Hyvinkää", diff --git a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-sv.json b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-sv.json index 7ff2fe11d..f1c0e5118 100644 --- a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-sv.json +++ b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-sv.json @@ -411,7 +411,7 @@ { "country": "Finland", "countryUrl": "/sv/destinationer/finland", - "numberOfHotels": 52, + "numberOfHotels": 51, "cities": [ { "id": "5e6afbbc-c2f4-4506-b770-230f9cab70d1", @@ -451,13 +451,6 @@ "hotelCount": 1, "url": "/sv/destinationer/finland/hyvinge" }, - { - "id": "92edb3ae-1174-4c77-99bd-de5919abb927", - "name": "Imatra", - "hotelIds": ["696"], - "hotelCount": 1, - "url": "/sv/destinationer/finland/imatra" - }, { "id": "4cc21629-4006-4a2a-b3bd-26a1687ca36d", "name": "Nokia", @@ -803,7 +796,7 @@ { "id": "d13dcbb3-3ff9-44b9-b2e6-9ce880722fdf", "name": "Tromsø", - "hotelIds": ["310", "362", "796"], + "hotelIds": ["362", "310", "796"], "hotelCount": 3, "url": "/sv/destinationer/norge/tromso" }, diff --git a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/query.ts b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/query.ts index 57f59c3f4..92b9bbb7e 100644 --- a/packages/trpc/lib/routers/contentstack/destinationOverviewPage/query.ts +++ b/packages/trpc/lib/routers/contentstack/destinationOverviewPage/query.ts @@ -254,11 +254,10 @@ export const destinationOverviewPageQueryRouter = router({ } }) ) - const data = getSortedDestinationsByLanguage(destinations, lang) const fs = await import("node:fs") fs.writeFileSync( - `./server/routers/contentstack/destinationOverviewPage/destinations-${lang}.json`, + `../../packages/trpc/lib/routers/contentstack/destinationOverviewPage/destinations-${lang}.json`, JSON.stringify(data), { encoding: "utf-8",