bug fixes

This commit is contained in:
Daniel Hougaard
2024-10-26 23:27:38 +04:00
parent d32f69e052
commit 7245aaa9ec
3 changed files with 7 additions and 3 deletions
@@ -265,7 +265,9 @@ export const registerIdentityRouter = async (server: FastifyZodProvider) => {
permissions: true,
description: true
}).optional(),
identity: IdentitiesSchema.pick({ name: true, id: true, authMethod: true })
identity: IdentitiesSchema.pick({ name: true, id: true }).extend({
authMethods: z.array(z.string())
})
}).array(),
totalCount: z.number()
})