Removed bookshelf-relations config from PostRevision model

This was causing issues with saving posts when revisions did not have authors
and is not necessary for the functionality we desire.
This commit is contained in:
Fabien "egg" O'Carroll 2023-04-19 17:49:23 +01:00
parent 9b00411e3f
commit ce3f2221a0

View File

@ -4,8 +4,6 @@ const _ = require('lodash');
const PostRevision = ghostBookshelf.Model.extend({
tableName: 'post_revisions',
relationships: ['author'],
author() {
return this.belongsTo('User', 'author_id');
},