fix: remove undefined return type from get saml endpoint

This commit is contained in:
Daniel Hougaard
2025-07-04 05:07:54 +04:00
parent cda8579ca4
commit 65b1354ef1
4 changed files with 34 additions and 31 deletions
+11 -13
View File
@@ -277,19 +277,17 @@ export const registerSamlRouter = async (server: FastifyZodProvider) => {
organizationId: z.string().trim().describe(SamlSso.GET_CONFIG.organizationId)
}),
response: {
200: z
.object({
id: z.string(),
organization: z.string(),
orgId: z.string(),
authProvider: z.string(),
isActive: z.boolean(),
entryPoint: z.string(),
issuer: z.string(),
cert: z.string(),
lastUsed: z.date().nullable().optional()
})
.optional()
200: z.object({
id: z.string(),
organization: z.string(),
orgId: z.string(),
authProvider: z.string(),
isActive: z.boolean(),
entryPoint: z.string(),
issuer: z.string(),
cert: z.string(),
lastUsed: z.date().nullable().optional()
})
}
},
handler: async (req) => {