diff --git a/js/actions/_admin/foxx/app.js b/js/actions/_admin/foxx/app.js index cd1e6f909b..11b2aa7210 100644 --- a/js/actions/_admin/foxx/app.js +++ b/js/actions/_admin/foxx/app.js @@ -55,13 +55,17 @@ function proxyLocal (method, url, qs, body, headers = {}) { if (body) { headers['content-length'] = body.length; } - const res = request({ + const req = { method, url, qs, headers, body - }); + }; + if (require('internal').db._version(true)['maintainer-mode'] === 'true') { + req.timeout = 300; + } + const res = request(req); if (res.json && res.json.errorNum) { throw new ArangoError(res.json); }