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

Commit 7e1eac21 by Matthew Scragg

Model.destroy: add model to options

This gets added in BulkCreate but not destroy. I need to it figure out the model when using a global BulkDelete hook.
1 parent 7f90dc69
Showing with 1 additions and 0 deletions
......@@ -2320,6 +2320,7 @@ Model.prototype.destroy = function(options) {
this.$injectScope(options);
Utils.mapOptionFieldNames(options, this);
options.model = self;
return Promise.try(function() {
// Run before hook
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!