Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "js-jpa", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "jpa for node", | ||
@@ -5,0 +5,0 @@ "author": "stone", |
@@ -176,6 +176,6 @@ const ErrorUtils = require('./ErrorUtils') | ||
} | ||
repository.delete = async (context, entity) => { | ||
repository.delete = async (context, key) => { | ||
let primaryKey = schemaUtil.getPrimaryKey(repository.schema) | ||
let where = primaryKey + '=?' | ||
let values = [entity[primaryKey]] | ||
let values = [key] | ||
return await this.delete(context, repository.schema, where, values) | ||
@@ -182,0 +182,0 @@ } |
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
20223