mirror of
https://github.com/immich-app/immich.git
synced 2026-03-06 10:07:48 +03:00
refactor(server): bulk interface (#10889)
This commit is contained in:
@@ -61,9 +61,9 @@ export class MemoryRepository implements IMemoryRepository {
|
||||
.from('memories_assets_assets', 'memories_assets')
|
||||
.where('"memories_assets"."memoriesId" = :memoryId', { memoryId: id })
|
||||
.andWhere('memories_assets.assetsId IN (:...assetIds)', { assetIds })
|
||||
.getRawMany();
|
||||
.getRawMany<{ assetId: string }>();
|
||||
|
||||
return new Set(results.map((row) => row['assetId']));
|
||||
return new Set(results.map(({ assetId }) => assetId));
|
||||
}
|
||||
|
||||
@GenerateSql({ params: [DummyValue.UUID, [DummyValue.UUID]] })
|
||||
|
||||
Reference in New Issue
Block a user