Add AdditionalData field to Page model and save endpoint
This commit is contained in:
parent
aba864b72b
commit
7f8f0a1dd7
@ -122,6 +122,10 @@ class Page extends Controller {
|
||||
page.IsVisibleInMenu = !!req.body.IsVisibleInMenu
|
||||
}
|
||||
|
||||
if ( 'AdditionalData' in req.body ) {
|
||||
page.AdditionalData = req.body.AdditionalData;
|
||||
}
|
||||
|
||||
/*let parent;
|
||||
if ( !req.body.ParentId ) return res.status(400).message('Missing required: ParentId').api({})
|
||||
else {
|
||||
|
@ -33,6 +33,7 @@ class Page extends VersionedModel {
|
||||
UpdateUserId: {type: String},
|
||||
ChildPageIds: [String],
|
||||
PageType: {type: String, default: PageType.Note}, // PageType
|
||||
AdditionalData: Object,
|
||||
|
||||
// Menu flags
|
||||
noDelete: { type: Boolean, default: false },
|
||||
|
Loading…
Reference in New Issue
Block a user