adonis-lucid-mongodb
Advanced tools
Comparing version 1.0.53 to 1.0.54
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "1.0.53", | ||
"version": "1.0.54", | ||
"scripts": { | ||
@@ -76,4 +76,4 @@ "lint": "standard", | ||
"type": "git", | ||
"url": "https://github.com/duyluonglc/adonis-lucid-mongodb.git" | ||
"url": "https://github.com/duyluonglc/lucid-mongo.git" | ||
} | ||
} |
@@ -0,0 +0,0 @@ # AdonisJS Lucid MongoDB |
@@ -0,0 +0,0 @@ 'use strict' |
@@ -45,3 +45,3 @@ 'use strict' | ||
this.exists = true | ||
this.original = _.cloneDeep(this.attributes) | ||
this.original = _.clone(this.attributes) | ||
return !!save | ||
@@ -87,3 +87,3 @@ } | ||
this.parsePersistance(_.omit(dirtyValues, ['$set', '$unset'])) | ||
this.original = _.cloneDeep(this.attributes) | ||
this.original = _.clone(this.attributes) | ||
} | ||
@@ -90,0 +90,0 @@ return save |
@@ -32,3 +32,3 @@ 'use strict' | ||
} else { | ||
result[key] = this.getFormatedField(key, this.$attributes[key]) | ||
// result[key] = this.getFormatedField(key, this.$attributes[key]) | ||
} | ||
@@ -35,0 +35,0 @@ }) |
@@ -48,3 +48,3 @@ 'use strict' | ||
modelInstance.exists = true | ||
modelInstance.original = _.cloneDeep(modelInstance.attributes) | ||
modelInstance.original = _.clone(modelInstance.attributes) | ||
return _(modelInstance) | ||
@@ -75,3 +75,3 @@ }).value() | ||
modelInstance.exists = true | ||
modelInstance.original = _.cloneDeep(modelInstance.attributes) | ||
modelInstance.original = _.clone(modelInstance.attributes) | ||
response[value] = _(modelInstance) | ||
@@ -78,0 +78,0 @@ return response |
260902