mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
a157c147af
commit
4fca28e643
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ proto = ghostBookshelf.Model.prototype;
|
|||
* We could embedd adding actions more nicely in the future e.g. plugin.
|
||||
*/
|
||||
const addAction = (model, event, options) => {
|
||||
if (model._changed && !Object.keys(model._changed).length) {
|
||||
if (!model.wasChanged()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -175,7 +175,7 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
|
|||
debug(model.tableName, event);
|
||||
|
||||
const _emit = (ghostEvent, model) => {
|
||||
if (model._changed && !Object.keys(model._changed).length) {
|
||||
if (!model.wasChanged()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue