mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
fix: asset deletes not filtering by ownerId
This commit is contained in:
parent
3d24230269
commit
36ca115f52
@ -99,6 +99,7 @@ export class SyncRepository {
|
|||||||
return this.db
|
return this.db
|
||||||
.selectFrom('assets_audit')
|
.selectFrom('assets_audit')
|
||||||
.select(['id', 'assetId'])
|
.select(['id', 'assetId'])
|
||||||
|
.where('ownerId', '=', userId)
|
||||||
.$if(!!ack, (qb) => qb.where('id', '>', ack!.updateId))
|
.$if(!!ack, (qb) => qb.where('id', '>', ack!.updateId))
|
||||||
.$call((qb) => this.auditTableFilters(qb, ack))
|
.$call((qb) => this.auditTableFilters(qb, ack))
|
||||||
.stream();
|
.stream();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user