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

Commit bfc083d3 by Mick Hansen

Merge pull request #2270 from sequelize/revert-2269-feature/paranoid-after-destroy

Revert "Run afterDestroy hook on paranoid model"
2 parents 290b88c9 8712e634
Showing with 1 additions and 0 deletions
......@@ -739,6 +739,7 @@ module.exports = (function() {
if (self.Model._timestampAttributes.deletedAt && options.force === false) {
self.dataValues[self.Model._timestampAttributes.deletedAt] = new Date();
options.hooks = false;
return self.save(options);
} else {
identifier = self.__options.hasPrimaryKeys ? self.primaryKeyValues : { id: self.id };
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!