chore: remove usage of deprecated Kysely method (#18127)

* minor update. fix usage of deprecated method'

* restore original formatting
This commit is contained in:
SGT
2025-05-06 18:01:02 -03:00
committed by GitHub
parent 2a80251dc3
commit ec6379b0b2
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -29,7 +29,9 @@ export class AuditRepository {
.$if(!!options.entityType, (qb) => qb.where('audit.entityType', '=', options.entityType!))
.where('audit.ownerId', 'in', options.userIds)
.distinctOn(['audit.entityId', 'audit.entityType'])
.orderBy(['audit.entityId desc', 'audit.entityType desc', 'audit.createdAt desc'])
.orderBy('audit.entityId', 'desc')
.orderBy('audit.entityType', 'desc')
.orderBy('audit.createdAt', 'desc')
.select('audit.entityId')
.execute();