mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 01:39:32 +00:00
feat(audit): change audit log action to string at db level and split file/folder actions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user