mirror of https://github.com/status-im/codimd.git
Update lib/web/middleware/checkVersion.js
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
b49a4e24f1
commit
bd508b166f
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue