mirror of
https://github.com/LukeHagar/immich.git
synced 2025-12-06 20:47:48 +00:00
chore(server): return duplicate assets as group (#9576)
* chore(server): return duplicate assets as group * file name
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
import { AssetResponseDto } from 'src/dtos/asset-response.dto';
|
||||
import { AuthDto } from 'src/dtos/auth.dto';
|
||||
import { DuplicateResponseDto } from 'src/dtos/duplicate.dto';
|
||||
import { Auth, Authenticated } from 'src/middleware/auth.guard';
|
||||
import { DuplicateService } from 'src/services/duplicate.service';
|
||||
|
||||
@@ -12,7 +12,7 @@ export class DuplicateController {
|
||||
|
||||
@Get()
|
||||
@Authenticated()
|
||||
getAssetDuplicates(@Auth() auth: AuthDto): Promise<AssetResponseDto[]> {
|
||||
getAssetDuplicates(@Auth() auth: AuthDto): Promise<DuplicateResponseDto[]> {
|
||||
return this.service.getDuplicates(auth);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user