Skip to content

Commit 97a7fc3

Browse files
committed
Rebuilt.
1 parent 5dc8ad0 commit 97a7fc3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

dist/arango.all.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ extend(BaseCollection.prototype, {
181181
}
182182
if (!callback)
183183
callback = noop;
184-
this._api.post('import', data, extend({}, opts, { collection: this.name }), function (err, body) {
184+
this._api.post('import', data, extend({ type: 'auto' }, opts, { collection: this.name }), function (err, body) {
185185
if (err)
186186
callback(err);
187187
else
@@ -672,7 +672,7 @@ extend(Database.prototype, {
672672
var self = this;
673673
self._api.get('gharial/' + graphName, function (err, body) {
674674
if (err) {
675-
if (!autoCreate || err.name !== 'ArangoError' || err.errorNum !== 1203)
675+
if (!autoCreate || err.name !== 'ArangoError' || err.errorNum !== 1924)
676676
callback(err);
677677
else
678678
self.createGraph({ name: graphName }, callback);
@@ -1031,8 +1031,8 @@ module.exports = Graph;
10311031
function Graph(connection, body) {
10321032
this._connection = connection;
10331033
this._api = this._connection.endpoint('_api');
1034-
this._gharial = this._api.endpoint('gharial/' + this.name);
10351034
extend(this, body);
1035+
this._gharial = this._api.endpoint('gharial/' + this.name);
10361036
}
10371037
Graph.VertexCollection = VertexCollection;
10381038
Graph.EdgeCollection = EdgeCollection;

dist/arango.all.min.js

Lines changed: 1 addition & 1 deletion
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ extend(BaseCollection.prototype, {
181181
}
182182
if (!callback)
183183
callback = noop;
184-
this._api.post('import', data, extend({}, opts, { collection: this.name }), function (err, body) {
184+
this._api.post('import', data, extend({ type: 'auto' }, opts, { collection: this.name }), function (err, body) {
185185
if (err)
186186
callback(err);
187187
else
@@ -672,7 +672,7 @@ extend(Database.prototype, {
672672
var self = this;
673673
self._api.get('gharial/' + graphName, function (err, body) {
674674
if (err) {
675-
if (!autoCreate || err.name !== 'ArangoError' || err.errorNum !== 1203)
675+
if (!autoCreate || err.name !== 'ArangoError' || err.errorNum !== 1924)
676676
callback(err);
677677
else
678678
self.createGraph({ name: graphName }, callback);
@@ -1031,8 +1031,8 @@ module.exports = Graph;
10311031
function Graph(connection, body) {
10321032
this._connection = connection;
10331033
this._api = this._connection.endpoint('_api');
1034-
this._gharial = this._api.endpoint('gharial/' + this.name);
10351034
extend(this, body);
1035+
this._gharial = this._api.endpoint('gharial/' + this.name);
10361036
}
10371037
Graph.VertexCollection = VertexCollection;
10381038
Graph.EdgeCollection = EdgeCollection;

dist/arango.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)