unimapperjs
Advanced tools
Comparing version
{ | ||
"name": "unimapperjs", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Universal node.js (native ES6/ES7) LINQ-like object mapper (ORM/ODM) for all types of databases (SQL, NoSQL).", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -125,7 +125,7 @@ "use strict"; | ||
} | ||
await this.domain.__adapter.remove(this, { | ||
field: "id", | ||
func: "=", | ||
arg: entity.__properties[ID_FIELD_NAME] | ||
}, connection); | ||
await this.domain.__adapter.remove(this, [{ | ||
field: ID_FIELD_NAME, | ||
func: "=", | ||
arg: entity.__properties[ID_FIELD_NAME] | ||
}], connection); | ||
entity.__isRemoved = true; | ||
@@ -286,3 +286,4 @@ } | ||
for (let field in data) { | ||
if (data.hasOwnProperty(field)) { | ||
if (data.hasOwnProperty(field) | ||
&& field in this.constructor._description) { | ||
if (this[field] !== data[field] && field != ID_FIELD_NAME) { | ||
@@ -289,0 +290,0 @@ this.__changedProps[field] = data[field]; |
@@ -208,7 +208,7 @@ import {Query} from "./Query"; | ||
await (<any>this.domain).__adapter.remove(this, { | ||
field: "id", | ||
await (<any>this.domain).__adapter.remove(this, [{ | ||
field: ID_FIELD_NAME, | ||
func: "=", | ||
arg: entity.__properties[ID_FIELD_NAME] | ||
}, connection); | ||
}], connection); | ||
entity.__isRemoved = true; | ||
@@ -429,3 +429,4 @@ } | ||
{ | ||
if (data.hasOwnProperty(field)) | ||
if (data.hasOwnProperty(field) | ||
&& field in (<typeof Entity>this.constructor)._description) | ||
{ | ||
@@ -432,0 +433,0 @@ if (this[field] !== data[field] && field != ID_FIELD_NAME) |
Sorry, the diff of this file is not supported yet
294535
0.07%7419
0.03%