Skip to content

Commit

Permalink
fix(restriction-query): Replace label by theme in restriction slug ge…
Browse files Browse the repository at this point in the history
…neration (#41)
  • Loading branch information
deuzu authored Nov 17, 2023
1 parent 85992de commit bfd39c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/restrictions-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default async (event: APIGatewayProxyEvent): Promise<APIGatewayProxyResul

const restrictionValues: Array<any> = 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
Expand Down

0 comments on commit bfd39c9

Please sign in to comment.