[Updater > Module] Minor source cleanup
This commit is contained in:
parent
281432d6f7
commit
ac97a3863e
1 changed files with 9 additions and 9 deletions
|
@ -146,16 +146,16 @@ const hostPassed = (skip = skipModule) => {
|
||||||
const checkModules = async () => {
|
const checkModules = async () => {
|
||||||
hostAvail = false;
|
hostAvail = false;
|
||||||
|
|
||||||
const qs = {
|
try {
|
||||||
|
const { body } = await request.get({
|
||||||
|
url: baseUrl + '/versions.json',
|
||||||
|
qs: {
|
||||||
...baseQuery,
|
...baseQuery,
|
||||||
_: Math.floor(Date.now() / 300000) // 5 min intervals
|
_: Math.floor(Date.now() / 300000) // 5 min intervals
|
||||||
};
|
},
|
||||||
const url = baseUrl + '/versions.json';
|
timeout: 15000
|
||||||
|
});
|
||||||
|
|
||||||
log('Modules', 'Checking @', url);
|
|
||||||
|
|
||||||
try {
|
|
||||||
const { body } = await request.get({ url, qs, timeout: 15000 });
|
|
||||||
checking = false;
|
checking = false;
|
||||||
|
|
||||||
remote = JSON.parse(body);
|
remote = JSON.parse(body);
|
||||||
|
|
Loading…
Reference in a new issue