Update lib/web/middleware/checkVersion.js

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
Raccoon 2020-03-17 02:23:25 +08:00 committed by BoHong Li
parent b49a4e24f1
commit bd508b166f
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ async function checkVersion (ctx) {
url: `${VERSION_CHECK_ENDPOINT}?v=${config.version}`, url: `${VERSION_CHECK_ENDPOINT}?v=${config.version}`,
method: 'GET', method: 'GET',
json: true, json: true,
timeout: 1000 timeout: 3000
}) })
if (statusCode !== 200 || data.status === 'error') { if (statusCode !== 200 || data.status === 'error') {