Browse Source

spent temp fix

Michael Wang 4 years ago
parent
commit
fc7f552708
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/api/markPage.ts

+ 2 - 1
src/api/markPage.ts

@@ -106,7 +106,8 @@ export async function saveTask() {
   if (markResult) {
     markResult.specialTagList = [];
     markResult.problem = false;
-    markResult.spent = Date.now() - markResult.spent;
+    if (markResult.spent > 24 * 60 * 60 * 1000)
+      markResult.spent = Date.now() - markResult.spent;
 
     return httpApp.post("/mark/saveTask", markResult);
   }