diff --git a/js/server/modules/@arangodb/cluster.js b/js/server/modules/@arangodb/cluster.js index 3baaaf6bc7..cd587722fa 100644 --- a/js/server/modules/@arangodb/cluster.js +++ b/js/server/modules/@arangodb/cluster.js @@ -33,7 +33,7 @@ var arangodb = require('@arangodb'); var ArangoCollection = arangodb.ArangoCollection; var ArangoError = arangodb.ArangoError; var errors = require("internal").errors; -var request = require('@arangodb/request').requestCluster; +var request = require('@arangodb/request').clusterRequest; var wait = require('internal').wait; var _ = require('lodash'); diff --git a/js/server/modules/@arangodb/replication.js b/js/server/modules/@arangodb/replication.js index 2fe67c6c9b..f61c53a680 100644 --- a/js/server/modules/@arangodb/replication.js +++ b/js/server/modules/@arangodb/replication.js @@ -31,7 +31,7 @@ var internal = require('internal'); var endpointToURL = require('@arangodb/cluster').endpointToURL; var request; if (ArangoServerState.role() == 'PRIMARY') { - request = require('@arangodb/request').requestCluster; + request = require('@arangodb/request').clusterRequest; } else { request = require('@arangodb/request').request; } diff --git a/js/server/modules/@arangodb/request.js b/js/server/modules/@arangodb/request.js index b54d9f6e16..701793a366 100644 --- a/js/server/modules/@arangodb/request.js +++ b/js/server/modules/@arangodb/request.js @@ -57,7 +57,7 @@ function querystringify (query, useQuerystring) { }); } -function requestCluster(req) { +function clusterRequest(req) { if (typeof req === 'string') { req = {url: req, method: 'GET'}; } @@ -151,5 +151,5 @@ function requestCluster(req) { let result = internal.clusterDownload(path, body, options); return new Response(result, req.encoding, req.json); } -exports.requestCluster = requestCluster; +exports.clusterRequest = clusterRequest; module.exports = exports;