Skip to content

Commit

Permalink
Change update slug fallback to undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtony98 committed Feb 9, 2024
1 parent 92828b5 commit 2cc2a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/services/org/org-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const orgServiceFactory = ({

const org = await orgDAL.updateById(orgId, {
name,
slug: slug ? slugify(slug) : slug,
slug: slug ? slugify(slug) : undefined,
authEnforced
});
if (!org) throw new BadRequestError({ name: "Org not found", message: "Organization not found" });
Expand Down

0 comments on commit 2cc2a91

Please sign in to comment.