Comparing version 0.1.10-alpha.2 to 0.1.11-alpha.0
@@ -143,3 +143,3 @@ const { DatabaseModelBase } = require('./DatabaseModelBase') | ||
for (const row of cascade) { | ||
await new Update() | ||
const result = await new Update() | ||
.target(row.model) | ||
@@ -149,2 +149,8 @@ .values(row.values) | ||
.exec() | ||
if (!result.changes) { | ||
await new Insert() | ||
.target(row.model) | ||
.values(row.values) | ||
.exec() | ||
} | ||
} | ||
@@ -151,0 +157,0 @@ return this |
{ | ||
"name": "djorm", | ||
"version": "0.1.10-alpha.2", | ||
"version": "0.1.11-alpha.0", | ||
"description": "Django like ORM framework", | ||
@@ -39,3 +39,3 @@ "author": "Pavel Žák <pavel@zak.global>", | ||
}, | ||
"gitHead": "c1069d8747c72c75d1c989cea431a5f0407e3042" | ||
"gitHead": "b86a34e09bb3426ee27fc6b93f428ce21bce8b7e" | ||
} |
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
72113
2532