refactor: migrate library repository to kysely (#15271)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user