Skip to content

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

feat: fixed ts failing

=95483eb83e72
diff --git a/backend/src/server/routes/v1/organization-router.ts b/backend/src/server/routes/v1/organization-router.ts
index 592a82283f..82c6716af2 100644
--- a/backend/src/server/routes/v1/organization-router.ts
+++ b/backend/src/server/routes/v1/organization-router.ts
@@ -311,9 +311,8 @@ export const registerOrgRouter = async (server: FastifyZodProvider) => {
email: true,
firstName: true,
lastName: true,
- id: true,
- superAdmin: true
- }).merge(z.object({ publicKey: z.string().nullable().optional() }))
+ id: true
+ }).merge(z.object({ publicKey: z.string().nullable().optional(), superAdmin: z.boolean().nullish() }))
})
)
.omit({ createdAt: true, updatedAt: true })
diff --git a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
index 1b5108bcde..450684487c 100644
--- a/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
+++ b/frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx
@@ -210,7 +210,6 @@ export const SelectOrgPage = () => {
if (callbackPort) {
let error: string | null = null;
- console.log(user);
if (!user?.email) error = "User email not found";
if (!token) error = "No token found";