feat(audit): change audit log action to string at db level and split file/folder actions

This commit is contained in:
yiling
2026-08-01 14:49:08 +08:00
parent 6d80f06c22
commit 5ef7716c9c
19 changed files with 192 additions and 193 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ const route = new Hono<{ Variables: { user: User } }>()
const context = await assetService.getAssetContext(fileId)
await auditLogService.logAction({
action: AuditAction.asset_update,
action: AuditAction.file_update,
teamId: context.teamId,
userId: user.id,
projectId: context.projectId,
@@ -107,7 +107,7 @@ const route = new Hono<{ Variables: { user: User } }>()
for (let i = 0; i < req.ids.length; i++) {
const ctx = contexts[i]
await auditLogService.logAction({
action: AuditAction.asset_delete,
action: AuditAction.file_delete,
teamId: ctx.teamId,
userId: user.id,
projectId: ctx.projectId,