misc: added audit logs for kms backup and other minor edits

This commit is contained in:
Sheen Capadngan
2024-07-30 23:03:53 +05:30
committed by =
parent 80be054425
commit 69d813887b
5 changed files with 19 additions and 7 deletions
+7 -1
View File
@@ -281,7 +281,13 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
projectId: req.params.workspaceId
});
// TODO: add audit log
await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
projectId: req.params.workspaceId,
event: {
type: EventType.GET_PROJECT_KMS_BACKUP
}
});
return backup;
}