Remove dynamic generation of static resource_type

no-issue
This commit is contained in:
Fabien O'Carroll 2019-08-14 10:40:17 +08:00
parent e3c3633183
commit 5d7ad0518a

View File

@ -627,7 +627,7 @@ Post = ghostBookshelf.Model.extend({
return { return {
event: event, event: event,
resource_id: this.id || this.previous('id'), resource_id: this.id || this.previous('id'),
resource_type: this.tableName.replace(/s$/, ''), resource_type: 'post',
actor_id: actor.id, actor_id: actor.id,
actor_type: actor.type actor_type: actor.type
}; };