1
0
Fork 0

attempt to fix Windows build

This commit is contained in:
jsteemann 2017-01-04 09:08:13 +01:00
parent 18f94a4bfc
commit 0070b40fbf
1 changed files with 3 additions and 3 deletions

View File

@ -267,8 +267,8 @@ static void JS_GetAgency(v8::FunctionCallbackInfo<v8::Value> const& args) {
/// @brief read transaction to the agency
////////////////////////////////////////////////////////////////////////////////
static void JS_APIAgency(std::string const& interface,
v8::FunctionCallbackInfo<v8::Value> const& args) {
static void JS_APIAgency(std::string const& method,
v8::FunctionCallbackInfo<v8::Value> const& args) {
TRI_V8_TRY_CATCH_BEGIN(isolate)
v8::HandleScope scope(isolate);
@ -288,7 +288,7 @@ static void JS_APIAgency(std::string const& interface,
comm.sendWithFailover(
arangodb::rest::RequestType::POST,
AgencyCommManager::CONNECTION_OPTIONS._requestTimeout,
std::string("/_api/agency/") + interface, builder.toJson());
std::string("/_api/agency/") + method, builder.toJson());
if (!result.successful()) {
THROW_AGENCY_EXCEPTION(result);