fix: fix audit search

This commit is contained in:
yosaphatprs 2025-11-28 16:17:25 +07:00
parent 12e190961c
commit ac39d8df2e

View File

@ -69,6 +69,7 @@ export class AuditService {
where: { where: {
id: type && type !== 'all' ? { startsWith: type } : undefined, id: type && type !== 'all' ? { startsWith: type } : undefined,
result: tampered ? (tampered as ResultStatus) : undefined, result: tampered ? (tampered as ResultStatus) : undefined,
OR: search ? [{ id: { contains: search } }] : undefined,
}, },
}); });