Explorar el Código

spent temp fix

Michael Wang hace 4 años
padre
commit
fc7f552708
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
   }