1
0
forked from Cutlery/immich
This commit is contained in:
Jonathan Jogenfors 2024-03-14 00:19:43 +01:00
parent 5e497e5166
commit 8bb73d6f3d

View File

@ -631,11 +631,11 @@ export class LibraryService extends EventEmitter {
const exists = await this.storageRepository.checkFileExists(asset.originalPath, R_OK);
if (!exists) {
if (exists) {
this.logger.verbose(`Asset is still online: ${asset.originalPath}`);
} else {
this.logger.debug(`Marking asset as offline: ${asset.originalPath}`);
await this.assetRepository.save({ id: asset.id, isOffline: true });
} else {
this.logger.verbose(`Asset is still online: ${asset.originalPath}`);
}
return true;