fix: asset deletes not filtering by ownerId

This commit is contained in:
Zack Pollard
2025-03-07 17:03:58 +00:00
committed by Alex
parent 3d24230269
commit 36ca115f52
@@ -99,6 +99,7 @@ export class SyncRepository {
return this.db
.selectFrom('assets_audit')
.select(['id', 'assetId'])
.where('ownerId', '=', userId)
.$if(!!ack, (qb) => qb.where('id', '>', ack!.updateId))
.$call((qb) => this.auditTableFilters(qb, ack))
.stream();