不要怂,就是干,撸起袖子干!

Commit 94ec1469 by Siyang Bi

* Fix destroy function not use schema

1 parent 4d7c9cab
Showing with 1 additions and 1 deletions
...@@ -516,7 +516,7 @@ module.exports = (function() { ...@@ -516,7 +516,7 @@ module.exports = (function() {
query = self.save(options) query = self.save(options)
} else { } else {
var identifier = self.__options.hasPrimaryKeys ? self.primaryKeyValues : { id: self.id }; var identifier = self.__options.hasPrimaryKeys ? self.primaryKeyValues : { id: self.id };
query = self.QueryInterface.delete(self, self.QueryInterface.QueryGenerator.addSchema(self.Model.tableName, self.Model.options.schema), identifier, options) query = self.QueryInterface.delete(self, self.QueryInterface.QueryGenerator.addSchema(self.Model), identifier, options)
} }
query.on('sql', function(sql) { query.on('sql', function(sql) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!