mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
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:
parent
9b00411e3f
commit
ce3f2221a0
1 changed files with 0 additions and 2 deletions
|
@ -4,8 +4,6 @@ const _ = require('lodash');
|
|||
const PostRevision = ghostBookshelf.Model.extend({
|
||||
tableName: 'post_revisions',
|
||||
|
||||
relationships: ['author'],
|
||||
|
||||
author() {
|
||||
return this.belongsTo('User', 'author_id');
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue