|
@@ -45,6 +45,7 @@ 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,
|
|
@@ -55,8 +56,8 @@ export class GetItems implements UseCaseInterface<GetItemsResult> {
|
|
sortBy: 'updated_at_timestamp',
|
|
sortBy: 'updated_at_timestamp',
|
|
sortOrder: 'ASC',
|
|
sortOrder: 'ASC',
|
|
limit: upperBoundLimit,
|
|
limit: upperBoundLimit,
|
|
- includeSharedVaultUuids: !dto.sharedVaultUuids ? userSharedVaultUuids : undefined,
|
|
|
|
- exclusiveSharedVaultUuids,
|
|
|
|
|
|
+ includeSharedVaultUuids: undefined,
|
|
|
|
+ exclusiveSharedVaultUuids: undefined,
|
|
}
|
|
}
|
|
|
|
|
|
const itemUuidsToFetch = await this.itemTransferCalculator.computeItemUuidsToFetch(
|
|
const itemUuidsToFetch = await this.itemTransferCalculator.computeItemUuidsToFetch(
|