misc: remove encrypted data key from org response

This commit is contained in:
Sheen Capadngan
2024-12-17 21:24:56 +08:00
parent 379e526200
commit b99b98b6a4
3 changed files with 25 additions and 5 deletions
+16
View File
@@ -0,0 +1,16 @@
import { OrganizationsSchema } from "@app/db/schemas";
export const sanitizedOrganizationSchema = OrganizationsSchema.pick({
id: true,
name: true,
customerId: true,
slug: true,
createdAt: true,
updatedAt: true,
authEnforced: true,
scimEnabled: true,
kmsDefaultKeyId: true,
defaultMembershipRole: true,
enforceMfa: true,
selectedMfaMethod: true
});