refactor: migrate library repository to kysely (#15271)

This commit is contained in:
Daniel Dietzler
2025-01-15 22:01:28 +01:00
committed by GitHub
parent 81568dbda3
commit a2207f2eef
5 changed files with 225 additions and 205 deletions
+2 -2
View File
@@ -311,7 +311,7 @@ export class LibraryService extends BaseService {
}
}
const library = await this.libraryRepository.update({ id, ...dto });
const library = await this.libraryRepository.update(id, dto);
return mapLibrary(library);
}
@@ -571,7 +571,7 @@ export class LibraryService extends BaseService {
this.logger.debug(`No non-excluded assets found in any import path for library ${library.id}`);
}
await this.libraryRepository.update({ id: job.id, refreshedAt: new Date() });
await this.libraryRepository.update(job.id, { refreshedAt: new Date() });
return JobStatus.SUCCESS;
}