mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
Task Interval Changes
increased default task delay to 1 hour tweaked update logic on task panel
This commit is contained in:
@@ -19,7 +19,7 @@ async function RecentlyAddedItemsSyncTask() {
|
||||
|
||||
let interval=10000;
|
||||
|
||||
let taskDelay=15; //in minutes
|
||||
let taskDelay=60; //in minutes
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user