feat: page cache + save/load logic + db fixes

This commit is contained in:
Nicolas Giard
2018-09-15 20:58:23 -04:00
parent 572393aa7b
commit 2c6a95f900
9 changed files with 159 additions and 66 deletions

View File

@@ -16,6 +16,7 @@ module.exports = class PageHistory extends Model {
properties: {
id: {type: 'integer'},
path: {type: 'string'},
hash: {type: 'string'},
title: {type: 'string'},
description: {type: 'string'},
isPublished: {type: 'boolean'},
@@ -88,6 +89,7 @@ module.exports = class PageHistory extends Model {
content: opts.content,
description: opts.description,
editorKey: opts.editorKey,
hash: opts.hash,
isPrivate: opts.isPrivate,
isPublished: opts.isPublished,
localeCode: opts.localeCode,