Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(restriction-query): Replace label by theme in restriction slug generation #41

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(restriction-query): Replace label by theme in restriction slug ge…
…neration
deuzu committed Nov 17, 2023
commit 23bffae45222ffb0384c53d1e32139b01c7f00d9
2 changes: 1 addition & 1 deletion src/handlers/restrictions-query.ts
Original file line number Diff line number Diff line change
@@ -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