mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03: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
@ -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…
Reference in New Issue
Block a user