mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: library unit tests (#13357)
This commit is contained in:
parent
930df46f74
commit
3b7bf76db9
4 changed files with 152 additions and 13 deletions
|
|
@ -303,7 +303,6 @@ export class LibraryService extends BaseService {
|
|||
|
||||
async update(id: string, dto: UpdateLibraryDto): Promise<LibraryResponseDto> {
|
||||
await this.findOrFail(id);
|
||||
const library = await this.libraryRepository.update({ id, ...dto });
|
||||
|
||||
if (dto.importPaths) {
|
||||
const validation = await this.validate(id, { importPaths: dto.importPaths });
|
||||
|
|
@ -316,6 +315,7 @@ export class LibraryService extends BaseService {
|
|||
}
|
||||
}
|
||||
|
||||
const library = await this.libraryRepository.update({ id, ...dto });
|
||||
return mapLibrary(library);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue