Skip to content

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

fix backend type check error

x0322054f7ee7919d7f
diff --git a/backend/src/services/org/org-dal.ts b/backend/src/services/org/org-dal.ts
index 53dfc33555..89bdf9008c 100644
--- a/backend/src/services/org/org-dal.ts
+++ b/backend/src/services/org/org-dal.ts
@@ -272,7 +272,9 @@ export const orgDALFactory = (db: TDbClient) => {
// special query
const findAllOrgsByUserId = async (
userId: string
- ): Promise<(TOrganizations & { orgAuthMethod: string; userRole: string; userStatus: string })[]> => {
+ ): Promise<
+ (TOrganizations & { orgAuthMethod: string; userRole: string; userStatus: string; userJoinedAt: Date })[]
+ > => {
try {
const org = (await db
.replicaNode()(TableName.Membership)
@@ -308,7 +310,12 @@ export const orgDALFactory = (db: TDbClient) => {
ELSE ''
END as "orgAuthMethod"
`)
- )) as (TOrganizations & { orgAuthMethod: string; userRole: string; userStatus: string })[];
+ )) as (TOrganizations & {
+ orgAuthMethod: string;
+ userRole: string;
+ userStatus: string;
+ userJoinedAt: Date;
+ })[];
return org;
} catch (error) {