mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +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({
|
const PostRevision = ghostBookshelf.Model.extend({
|
||||||
tableName: 'post_revisions',
|
tableName: 'post_revisions',
|
||||||
|
|
||||||
relationships: ['author'],
|
|
||||||
|
|
||||||
author() {
|
author() {
|
||||||
return this.belongsTo('User', 'author_id');
|
return this.belongsTo('User', 'author_id');
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user