Comparing version 2.1.9 to 2.1.11
@@ -146,3 +146,5 @@ var util = require(__dirname+'/util.js'); | ||
async: doc._getModel()._async.init, | ||
fn: function() {} | ||
fn: function() { | ||
return doc; | ||
} | ||
}) | ||
@@ -153,3 +155,5 @@ if (promise instanceof Promise) promises.push(promise); | ||
if (promises.length > 0) { | ||
return Promise.all(promises); | ||
return Promise.all(promises).then(function(docs) { | ||
return docs[0]; | ||
}); | ||
} | ||
@@ -156,0 +160,0 @@ return doc; |
@@ -32,3 +32,6 @@ var arrayPrefix = "__array" | ||
for(var k=0; k<field.length; k++) { | ||
generateVirtual(field[k], {path: defaultField.path.slice(j+1), value: defaultField.value}, this, virtual[k]); | ||
if (virtual != null) { | ||
virtualValue = virtual[k]; | ||
} | ||
generateVirtual(field[k], {path: defaultField.path.slice(j+1), value: defaultField.value}, this, virtualValue); | ||
} | ||
@@ -35,0 +38,0 @@ } |
{ | ||
"name": "thinky", | ||
"version": "2.1.9", | ||
"version": "2.1.11", | ||
"description": "RethinkDB ORM for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/thinky.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
218819
5887