From bfd39c902ccb79b30c6442a95b641d832ed67335 Mon Sep 17 00:00:00 2001 From: Florian Touya Date: Fri, 17 Nov 2023 14:38:10 +0100 Subject: [PATCH] fix(restriction-query): Replace label by theme in restriction slug generation (#41) --- 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