mirror of
https://github.com/immich-app/immich.git
synced 2026-05-27 10:02:31 -04:00
fix: asset deletes not filtering by ownerId
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user