From fbfb4b680a7c2981c38e51b2176a6a91631e93a8 Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Mon, 9 Feb 2015 16:11:22 +0100 Subject: [PATCH] Set import type to "auto" unless explicitly set. --- lib/collection.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/collection.js b/lib/collection.js index 3b087c3df..2465db96d 100644 --- a/lib/collection.js +++ b/lib/collection.js @@ -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);