feat: Reduce minimum audit log deletion period to 6 days and update enrollment last access only for active enrollments.
This commit is contained in:
parent
ce2a472cac
commit
0588ad7acd
2 changed files with 12 additions and 10 deletions
|
|
@ -169,8 +169,8 @@ export class AuditController {
|
|||
throw new ValidationError('No token provided');
|
||||
}
|
||||
|
||||
if (days < 30) {
|
||||
throw new ValidationError('Cannot delete logs newer than 30 days');
|
||||
if (days < 6) {
|
||||
throw new ValidationError('Cannot delete logs newer than 6 days');
|
||||
}
|
||||
|
||||
const deleted = await auditService.deleteOldLogs(days);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue