Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bt4R9 committed Dec 8, 2023
1 parent 8731f5d commit 49d1493
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/services/new/collection/utils/get-parents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ export const getParents = async ({ctx, trx, collectionIds}: GetCollectionsParent
qb2.select(`${CollectionModel.tableName}.*`)
.from(CollectionModel.tableName)
.where({
[`${CollectionModel.tableName}.${CollectionModelColumn.TenantId}`]:
tenantId,
...(onlyMirrored
? {}
: {
[`${CollectionModel.tableName}.${CollectionModelColumn.TenantId}`]:
tenantId,
}),
[`${CollectionModel.tableName}.${CollectionModelColumn.ProjectId}`]:
projectId,
[`${CollectionModel.tableName}.${CollectionModelColumn.DeletedAt}`]:
Expand Down

0 comments on commit 49d1493

Please sign in to comment.