mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 09:12:57 +02:00
chore(server): return duplicate assets as group (#9576)
* chore(server): return duplicate assets as group * file name
This commit is contained in:
parent
9aed736911
commit
60427f18ce
4 changed files with 28 additions and 5 deletions
server/src/dtos
|
@ -50,6 +50,7 @@ export class AssetResponseDto extends SanitizedAssetResponseDto {
|
|||
stack?: AssetResponseDto[];
|
||||
@ApiProperty({ type: 'integer' })
|
||||
stackCount!: number | null;
|
||||
duplicateId?: string | null;
|
||||
}
|
||||
|
||||
export type AssetMapOptions = {
|
||||
|
@ -130,6 +131,7 @@ export function mapAsset(entity: AssetEntity, options: AssetMapOptions = {}): As
|
|||
isExternal: false,
|
||||
isReadOnly: false,
|
||||
hasMetadata: true,
|
||||
duplicateId: entity.duplicateId,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue