From 23bffae45222ffb0384c53d1e32139b01c7f00d9 Mon Sep 17 00:00:00 2001 From: "Florian Touya (Deuzu)" Date: Fri, 17 Nov 2023 14:35:44 +0100 Subject: [PATCH] fix(restriction-query): Replace label by theme in restriction slug generation --- src/handlers/restrictions-query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/restrictions-query.ts b/src/handlers/restrictions-query.ts index f2e1cdf..f34f25b 100644 --- a/src/handlers/restrictions-query.ts +++ b/src/handlers/restrictions-query.ts @@ -116,7 +116,7 @@ export default async (event: APIGatewayProxyEvent): Promise = Object.values(restrictionsUniqueCollection) const restrictions = restrictionValues.map((restriction) => { - restriction.slug = `${slugify(restriction.restrictionLevel)}-${slugify(restriction.label)}` + restriction.slug = `${slugify(restriction.restrictionLevel)}-${slugify(restriction.theme)}` const { alertLevel, document, type, ...rest } = restriction return rest