mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Removed redundant page attribute deletion
refs https://github.com/TryGhost/Toolbox/issues/332 - 'page' property has been dropped completely from the database schema, so there's no need to clean up this model property in the output serializer
This commit is contained in:
parent
214949fe8c
commit
acb3e25ef0
1 changed files with 0 additions and 4 deletions
|
@ -73,8 +73,6 @@ const post = (attrs, frame) => {
|
|||
const columns = frame && frame.options && frame.options.columns || null;
|
||||
const fields = frame && frame.original && frame.original.query && frame.original.query.fields || null;
|
||||
if (localUtils.isContentAPI(frame)) {
|
||||
// @TODO: https://github.com/TryGhost/Ghost/issues/10335
|
||||
// delete attrs.page;
|
||||
delete attrs.status;
|
||||
delete attrs.email_only;
|
||||
delete attrs.newsletter;
|
||||
|
@ -103,8 +101,6 @@ const post = (attrs, frame) => {
|
|||
if (columns && columns.includes('visibility') && fields && !fields.includes('visibility')) {
|
||||
delete attrs.visibility;
|
||||
}
|
||||
} else {
|
||||
delete attrs.page;
|
||||
}
|
||||
|
||||
if (columns && columns.includes('email_segment') && fields && !fields.includes('email_segment')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue