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
This commit is contained in:
Matilda Landström
2025-09-02 08:36:41 +00:00
parent 0a4bf40a15
commit 89d16c71ff
7 changed files with 11 additions and 61 deletions

View File

@@ -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"
},

View File

@@ -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ää",

View File

@@ -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",

View File

@@ -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"
},

View File

@@ -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ää",

View File

@@ -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"
},

View File

@@ -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",