Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat(org): Add userJoinedAt field to sub-organization schema

Igor Correa8cbac3cddcca
diff --git a/backend/src/services/org/org-schema.ts b/backend/src/services/org/org-schema.ts
index c929b4f50c..2a5ff0c77c 100644
--- a/backend/src/services/org/org-schema.ts
+++ b/backend/src/services/org/org-schema.ts
@@ -21,7 +21,9 @@ export const OrgWithSubOrgsSchema = OrganizationsSchema.pick({
id: true,
name: true,
slug: true
- }).array()
+ })
+ .extend({ userJoinedAt: z.date().optional().nullable() })
+ .array()
});
export const sanitizedOrganizationSchema = OrganizationsSchema.pick({