@spinajs/orm
Advanced tools
Comparing version 1.2.121 to 1.2.122
@@ -528,3 +528,3 @@ "use strict"; | ||
const driver = this.Orm.Connections.get(this.TargetModelDescriptor.Connection); | ||
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, result.map((x) => x.PrimaryKeyValue)); | ||
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, result.filter((x) => x.PrimaryKeyValue).map((x) => x.PrimaryKeyValue)); | ||
this.empty(); | ||
@@ -535,3 +535,3 @@ await this.add(result); | ||
const driver = this.Orm.Connections.get(this.TargetModelDescriptor.Connection); | ||
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, obj.map((x) => x.PrimaryKeyValue)); | ||
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, obj.filter((x) => x.PrimaryKeyValue).map((x) => x.PrimaryKeyValue)); | ||
this.empty(); | ||
@@ -543,3 +543,3 @@ await this.add(obj); | ||
const driver = this.Orm.Connections.get(this.TargetModelDescriptor.Connection); | ||
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, result.map((x) => x.PrimaryKeyValue)); | ||
await driver.Container.resolve(builders_1.DeleteQueryBuilder, [driver, this.Relation.TargetModel]).whereNotIn(this.Relation.PrimaryKey, result.filter((x) => x.PrimaryKeyValue).map((x) => x.PrimaryKeyValue)); | ||
this.empty(); | ||
@@ -546,0 +546,0 @@ await this.add(result); |
{ | ||
"name": "@spinajs/orm", | ||
"version": "1.2.121", | ||
"version": "1.2.122", | ||
"description": "framework orm module", | ||
@@ -55,3 +55,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "1242eec47ba5d4a5d9efec1250ce5080106376a8" | ||
"gitHead": "a76edeab563930be0f850424f37fb88f47a8e667" | ||
} |
Sorry, the diff of this file is not supported yet
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
365597