Browse Source

Fix initial run

Manav Rathi 1 year ago
parent
commit
adda781dcc

+ 2 - 2
web/apps/photos/src/services/machineLearning/machineLearningService.ts

@@ -523,10 +523,10 @@ class MachineLearningService {
         enteFile: EnteFile,
         localFile?: globalThis.File,
     ) {
-        console.log("Syncing for file" + enteFile.title);
+        log.debug(() => ({ a: "Syncing file", enteFile }));
         const fileContext: MLSyncFileContext = { enteFile, localFile };
         const oldMlFile = await this.getMLFileData(enteFile.id);
-        if (oldMlFile) {
+        if (oldMlFile && oldMlFile.mlVersion) {
             return oldMlFile;
         }