浏览代码

Fix initial run

Manav Rathi 1 年之前
父节点
当前提交
adda781dcc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      web/apps/photos/src/services/machineLearning/machineLearningService.ts

+ 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;
         }