misc: add custom role slug in fetch group

This commit is contained in:
Sheen Capadngan
2025-06-13 17:26:36 +08:00
parent 0f00474243
commit 06a7e804eb
2 changed files with 22 additions and 2 deletions
+3 -1
View File
@@ -48,7 +48,9 @@ export const registerGroupRouter = async (server: FastifyZodProvider) => {
id: z.string().trim().describe(GROUPS.GET_BY_ID.id)
}),
response: {
200: GroupsSchema
200: GroupsSchema.extend({
customRoleSlug: z.string().nullable()
})
}
},
handler: async (req) => {