Skip to content

Commit 8d63d17

Browse files
committed
Nevermind.
1 parent 3761348 commit 8d63d17

File tree

5 files changed

+14
-26
lines changed

5 files changed

+14
-26
lines changed

dist/arango.all.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,16 +1307,12 @@ extend(EdgeCollection.prototype, {
13071307
callback = fromId;
13081308
fromId = undefined;
13091309
} else {
1310-
data._from = fromId;
1311-
data._to = toId;
1310+
data._from = this._documentHandle(fromId);
1311+
data._to = this._documentHandle(toId);
13121312
}
13131313
if (!callback)
13141314
callback = noop;
1315-
this._gharial.post(data, {
1316-
collection: this.name,
1317-
from: this._documentHandle(fromId),
1318-
to: this._documentHandle(toId)
1319-
}, function (err, body) {
1315+
this._gharial.post(data, function (err, body) {
13201316
if (err)
13211317
callback(err);
13221318
else

dist/arango.all.min.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/arango.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,16 +1307,12 @@ extend(EdgeCollection.prototype, {
13071307
callback = fromId;
13081308
fromId = undefined;
13091309
} else {
1310-
data._from = fromId;
1311-
data._to = toId;
1310+
data._from = this._documentHandle(fromId);
1311+
data._to = this._documentHandle(toId);
13121312
}
13131313
if (!callback)
13141314
callback = noop;
1315-
this._gharial.post(data, {
1316-
collection: this.name,
1317-
from: this._documentHandle(fromId),
1318-
to: this._documentHandle(toId)
1319-
}, function (err, body) {
1315+
this._gharial.post(data, function (err, body) {
13201316
if (err)
13211317
callback(err);
13221318
else

dist/arango.min.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/graph.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,11 @@ extend(EdgeCollection.prototype, {
130130
callback = fromId;
131131
fromId = undefined;
132132
} else {
133-
data._from = fromId;
134-
data._to = toId;
133+
data._from = this._documentHandle(fromId);
134+
data._to = this._documentHandle(toId);
135135
}
136136
if (!callback) callback = noop;
137-
this._gharial.post(data, {
138-
collection: this.name,
139-
from: this._documentHandle(fromId),
140-
to: this._documentHandle(toId)
141-
}, function (err, body) {
137+
this._gharial.post(data, function (err, body) {
142138
if (err) callback(err);
143139
else callback(null, body);
144140
});

0 commit comments

Comments
 (0)