0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Added base model debug log for events

no issue
This commit is contained in:
kirrg001 2019-01-31 23:02:48 +01:00
parent a45f76c574
commit 01419ef8b3

View file

@ -118,6 +118,7 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
debug(model.tableName, event);
if (!options.transacting) {
debug(`event: ${event}`);
return common.events.emit(event, model, options);
}
@ -137,6 +138,7 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
}
_.each(this.ghostEvents, (ghostEvent) => {
debug(`event: ${event}`);
common.events.emit(ghostEvent, model, _.omit(options, 'transacting'));
});