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
@@ -138,7 +138,7 @@ describe('file api', () => {
id: 'test-id',
})
expect(auditLogService.logAction).toHaveBeenCalledWith({
action: 'asset_update',
action: 'file_update',
teamId: 'test-team',
userId: 'user1',
projectId: undefined,
@@ -166,7 +166,7 @@ describe('file api', () => {
})
expect(assetService.deleteAssets).toHaveBeenCalledWith(['test-id'])
expect(auditLogService.logAction).toHaveBeenCalledWith({
action: 'asset_delete',
action: 'file_delete',
teamId: 'test-team',
userId: 'user1',
projectId: undefined,