From 8bb73d6f3dac0359657cb16a91d00261d9944c27 Mon Sep 17 00:00:00 2001 From: Jonathan Jogenfors Date: Thu, 14 Mar 2024 00:19:43 +0100 Subject: [PATCH] fix lint --- server/src/domain/library/library.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/domain/library/library.service.ts b/server/src/domain/library/library.service.ts index 3040cbfa5..7e42ebad9 100644 --- a/server/src/domain/library/library.service.ts +++ b/server/src/domain/library/library.service.ts @@ -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;