mirror of
https://github.com/immich-app/immich.git
synced 2026-05-22 23:12:32 -04:00
fix comments from mert
This commit is contained in:
@@ -563,20 +563,17 @@ export class LibraryService extends EventEmitter {
|
||||
}
|
||||
|
||||
if (dto.checkForOffline) {
|
||||
if (dto.refreshAllFiles || dto.refreshModifiedFiles) {
|
||||
throw new BadRequestException('Cannot use checkForOffline with refreshAllFiles or refreshModifiedFiles');
|
||||
}
|
||||
await this.jobRepository.queue({ name: JobName.LIBRARY_SCAN_OFFLINE, data: { id } });
|
||||
} else {
|
||||
await this.jobRepository.queue({
|
||||
name: JobName.LIBRARY_SCAN,
|
||||
data: {
|
||||
id,
|
||||
refreshModifiedFiles: dto.refreshModifiedFiles ?? false,
|
||||
refreshAllFiles: dto.refreshAllFiles ?? false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
await this.jobRepository.queue({
|
||||
name: JobName.LIBRARY_SCAN,
|
||||
data: {
|
||||
id,
|
||||
refreshModifiedFiles: dto.refreshModifiedFiles ?? false,
|
||||
refreshAllFiles: dto.refreshAllFiles ?? false,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async queueRemoveOffline(auth: AuthDto, id: string) {
|
||||
|
||||
Reference in New Issue
Block a user