Task Interval Changes

increased default task delay to 1 hour
tweaked update logic on task panel
This commit is contained in:
Thegan Govender
2023-11-20 09:42:11 +02:00
parent 837dd18014
commit a74ce2b09e
2 changed files with 7 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ async function RecentlyAddedItemsSyncTask() {
let interval=10000;
let taskDelay=15; //in minutes
let taskDelay=60; //in minutes

View File

@@ -55,6 +55,12 @@ export default function Tasks() {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
}).then(()=>{
let taskstate=taskIntervals;
taskstate[taskName]={Interval:Interval};
console.log(taskstate);
setTaskIntervals(taskstate);
}).catch((error) => {
console.log(error);
});