mirror of
https://github.com/immich-app/immich.git
synced 2026-05-22 23:12:32 -04:00
fix messages
This commit is contained in:
@@ -536,7 +536,7 @@ export class LibraryService extends EventEmitter {
|
||||
async queueScan(id: string, dto: ScanLibraryDto) {
|
||||
const library = await this.findOrFail(id);
|
||||
if (library.type !== LibraryType.EXTERNAL) {
|
||||
throw new BadRequestException('Can only refresh external libraries');
|
||||
throw new BadRequestException('Can only scan external libraries');
|
||||
}
|
||||
|
||||
await this.jobRepository.queue({
|
||||
@@ -614,7 +614,7 @@ export class LibraryService extends EventEmitter {
|
||||
async handleQueueAssetRefresh(job: ILibraryRefreshJob): Promise<JobStatus> {
|
||||
const library = await this.repository.get(job.id);
|
||||
if (!library || library.type !== LibraryType.EXTERNAL) {
|
||||
this.logger.warn('Can only refresh external libraries');
|
||||
this.logger.warn('Can only scan external libraries');
|
||||
return JobStatus.FAILED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user