viewmodel
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -148,2 +148,3 @@ // lib/databases/inMemory.js v0.1.0 | ||
col[vm.id] = this.fromViewModel(vm); | ||
vm.actionOnCommit = 'update'; | ||
break; | ||
@@ -154,3 +155,3 @@ default: | ||
callback(null); | ||
callback(null, vm); | ||
}, | ||
@@ -157,0 +158,0 @@ |
@@ -46,3 +46,3 @@ // lib/databases/mongoDb.js v0.1.0 | ||
} else { | ||
var finish = function() { | ||
var finish = function() { | ||
self.client = client; | ||
@@ -152,3 +152,6 @@ self.isConnected = true; | ||
obj._id = obj.id; | ||
this.collection.save(obj, { safe: true }, callback); | ||
this.collection.save(obj, { safe: true }, function(err) { | ||
vm.actionOnCommit = 'update'; | ||
callback(err, vm); | ||
}); | ||
break; | ||
@@ -155,0 +158,0 @@ default: |
@@ -129,3 +129,6 @@ // lib/databases/nStore.js v0.0.1 | ||
var obj = self.fromViewModel(vm); | ||
self.collection.set(vm.id, obj, callback); | ||
self.collection.set(vm.id, obj, function(err) { | ||
vm.actionOnCommit = 'update'; | ||
callback(err, vm); | ||
}); | ||
break; | ||
@@ -132,0 +135,0 @@ default: |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.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
68845
1505