Skip to content

Commit fbfb4b6

Browse files
committed
Set import type to "auto" unless explicitly set.
1 parent 2122926 commit fbfb4b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/collection.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ extend(BaseCollection.prototype, {
164164
opts = undefined;
165165
}
166166
if (!callback) callback = noop;
167-
this._api.post('import', data, extend({}, opts, {
167+
this._api.post('import', data, extend({
168+
type: 'auto'
169+
}, opts, {
168170
collection: this.name
169171
}), function (err, body) {
170172
if (err) callback(err);

0 commit comments

Comments
 (0)