Add and test logic for adding fields to the DB

This commit is contained in:
Drew Gross
2016-02-05 11:21:17 -08:00
parent d934f3a863
commit e6feefd223
3 changed files with 167 additions and 7 deletions

View File

@@ -494,6 +494,7 @@ ExportAdapter.prototype.smartFind = function(coll, where, options) {
var index = {};
index[key] = '2d';
//TODO: condiser moving index creation logic into Schema.js
return coll.createIndex(index).then(() => {
// Retry, but just once.
return coll.find(where, options).toArray();