diff --git a/server/src/repositories/sync.repository.ts b/server/src/repositories/sync.repository.ts index caaa584ac8..bc3205c0a3 100644 --- a/server/src/repositories/sync.repository.ts +++ b/server/src/repositories/sync.repository.ts @@ -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();