misc: add identity support for audit log retention

This commit is contained in:
Sheen
2025-05-15 16:19:47 +00:00
parent 6e494f198b
commit 7b880f85cc
@@ -511,7 +511,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
}) })
} }
}, },
onRequest: verifyAuth([AuthMode.JWT]), onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
handler: async (req) => { handler: async (req) => {
const workspace = await server.services.project.updateAuditLogsRetention({ const workspace = await server.services.project.updateAuditLogsRetention({
actorId: req.permission.id, actorId: req.permission.id,