|
@@ -45,7 +45,6 @@ export class GetItems implements UseCaseInterface<GetItemsResult> {
|
|
const exclusiveSharedVaultUuids = dto.sharedVaultUuids
|
|
const exclusiveSharedVaultUuids = dto.sharedVaultUuids
|
|
? dto.sharedVaultUuids.filter((sharedVaultUuid) => userSharedVaultUuids.includes(sharedVaultUuid))
|
|
? dto.sharedVaultUuids.filter((sharedVaultUuid) => userSharedVaultUuids.includes(sharedVaultUuid))
|
|
: undefined
|
|
: undefined
|
|
- void exclusiveSharedVaultUuids
|
|
|
|
|
|
|
|
const itemQuery: ItemQuery = {
|
|
const itemQuery: ItemQuery = {
|
|
userUuid: userUuid.value,
|
|
userUuid: userUuid.value,
|
|
@@ -56,8 +55,8 @@ export class GetItems implements UseCaseInterface<GetItemsResult> {
|
|
sortBy: 'updated_at_timestamp',
|
|
sortBy: 'updated_at_timestamp',
|
|
sortOrder: 'ASC',
|
|
sortOrder: 'ASC',
|
|
limit: upperBoundLimit,
|
|
limit: upperBoundLimit,
|
|
- includeSharedVaultUuids: undefined,
|
|
|
|
- exclusiveSharedVaultUuids: undefined,
|
|
|
|
|
|
+ includeSharedVaultUuids: !dto.sharedVaultUuids ? userSharedVaultUuids : undefined,
|
|
|
|
+ exclusiveSharedVaultUuids,
|
|
}
|
|
}
|
|
|
|
|
|
const itemUuidsToFetch = await this.itemTransferCalculator.computeItemUuidsToFetch(
|
|
const itemUuidsToFetch = await this.itemTransferCalculator.computeItemUuidsToFetch(
|