Change update slug fallback to undefined

This commit is contained in:
Tuan Dang
2024-02-08 17:47:58 -08:00
parent 92828b5295
commit 2cc2a91812
+1 -1
View File
@@ -142,7 +142,7 @@ export const orgServiceFactory = ({
const org = await orgDAL.updateById(orgId, { const org = await orgDAL.updateById(orgId, {
name, name,
slug: slug ? slugify(slug) : slug, slug: slug ? slugify(slug) : undefined,
authEnforced authEnforced
}); });
if (!org) throw new BadRequestError({ name: "Org not found", message: "Organization not found" }); if (!org) throw new BadRequestError({ name: "Org not found", message: "Organization not found" });