Add AdditionalData field to Page model and save endpoint
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-11-23 10:22:04 -06:00
parent aba864b72b
commit 7f8f0a1dd7
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
2 changed files with 5 additions and 0 deletions

View File

@ -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 {

View File

@ -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 },