0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Removed author_id as a default fetched column for posts

refs https://github.com/TryGhost/Toolbox/issues/230

- The column has been dropped from schema and would not be necessary in the post's model
This commit is contained in:
Naz 2022-04-26 20:35:03 +08:00 committed by naz
parent e88b4b5c1b
commit efc443a8d1

View file

@ -862,7 +862,7 @@ Post = ghostBookshelf.Model.extend({
* This is protected by the fn `permittedOptions`.
*/
defaultColumnsToFetch: function defaultColumnsToFetch() {
return ['id', 'published_at', 'slug', 'author_id'];
return ['id', 'published_at', 'slug'];
},
/**
* If the `formats` option is not used, we return `html` be default.