Update groups count fn, type check

This commit is contained in:
Tuan Dang
2024-04-18 14:54:02 -07:00
parent e1407cc093
commit 1dd451f221
5 changed files with 28 additions and 45 deletions
@@ -45,7 +45,6 @@ export const registerOrgRouter = async (server: FastifyZodProvider) => {
onRequest: verifyAuth([AuthMode.JWT, AuthMode.API_KEY, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => {
if (req.auth.actor !== ActorType.USER) return;
const users = await server.services.org.findAllOrgMembers(
req.permission.id,
req.params.organizationId,