misc: initial setup for migration of audit logs

This commit is contained in:
Sheen Capadngan
2024-10-02 22:30:07 +08:00
parent e6e1ed7ca9
commit 86cb51364a
16 changed files with 227 additions and 47 deletions
@@ -125,12 +125,6 @@ export const registerOrgRouter = async (server: FastifyZodProvider) => {
})
.merge(
z.object({
project: z
.object({
name: z.string(),
slug: z.string()
})
.optional(),
event: z.object({
type: z.string(),
metadata: z.any()
@@ -168,6 +162,7 @@ export const registerOrgRouter = async (server: FastifyZodProvider) => {
actorAuthMethod: req.permission.authMethod,
actor: req.permission.type
});
return { auditLogs };
}
});