Ver Fonte

bin/taud: save the task at the end of parsing update params

ghassmo há 4 anos atrás
pai
commit
9c1b5d139e
1 ficheiros alterados com 8 adições e 0 exclusões
  1. 8 0
      bin/taud/src/main.rs

+ 8 - 0
bin/taud/src/main.rs

@@ -277,6 +277,14 @@ impl JsonRpcInterface {
                         .collect(),
                 );
             }
+
+            let save = task.save();
+
+            // TODO print the error
+            if let Err(_e) = save {
+                return Err("Unable to save the task")
+            }
+
             Ok(())
         };