Fix reading global data for duration
This commit is contained in:
parent
46a7182cfc
commit
a2cb524edd
1 changed files with 3 additions and 3 deletions
|
@ -54,8 +54,8 @@ export default class BackgroundCheck {
|
||||||
const updater_run = async () => {
|
const updater_run = async () => {
|
||||||
filter.update();
|
filter.update();
|
||||||
|
|
||||||
// Update the last time.
|
// Update the last update time.
|
||||||
return(await global.write([`settings`,`sync`,`last`], Date.now(), -1));
|
return(await global.write([`settings`,`sync`,`last`], Date.now(), -1, {"verify": false}));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Set the interval.
|
// Set the interval.
|
||||||
|
@ -87,7 +87,7 @@ export default class BackgroundCheck {
|
||||||
if ((await global.read([`settings`, `sync`, `duration`])) ? (await global.read([`settings`, `sync`, `duration`] * (60 ** 2) * 1000 != DURATION_PREFERENCES[`duration`])) : false) {
|
if ((await global.read([`settings`, `sync`, `duration`])) ? (await global.read([`settings`, `sync`, `duration`] * (60 ** 2) * 1000 != DURATION_PREFERENCES[`duration`])) : false) {
|
||||||
if (await global.global.read([`settings`, `sync`, `duration`])) {
|
if (await global.global.read([`settings`, `sync`, `duration`])) {
|
||||||
// Get the new time.
|
// Get the new time.
|
||||||
DURATION_PREFERENCES[`duration`] = await global.global.read([`settings`, `sync`, `duration`]) * (60 ** 2) * 1000;
|
DURATION_PREFERENCES[`duration`] = await global.read([`settings`, `sync`, `duration`]) * (60 ** 2) * 1000;
|
||||||
|
|
||||||
// Reset the updater.
|
// Reset the updater.
|
||||||
updater_reset();
|
updater_reset();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue