Skip to content

Commit

Permalink
Set import type to "auto" unless explicitly set.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma committed Feb 9, 2015
1 parent 2122926 commit fbfb4b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ extend(BaseCollection.prototype, {
opts = undefined;
}
if (!callback) callback = noop;
this._api.post('import', data, extend({}, opts, {
this._api.post('import', data, extend({
type: 'auto'
}, opts, {
collection: this.name
}), function (err, body) {
if (err) callback(err);
Expand Down

0 comments on commit fbfb4b6

Please sign in to comment.