feat: delete page

This commit is contained in:
Nicolas Giard
2019-01-26 18:35:56 -05:00
committed by Nick
parent faa1f389d9
commit 658c105ab5
24 changed files with 2126 additions and 2955 deletions

View File

@@ -99,7 +99,8 @@ module.exports = class PageHistory extends Model {
path: opts.path,
publishEndDate: opts.publishEndDate || '',
publishStartDate: opts.publishStartDate || '',
title: opts.title
title: opts.title,
action: opts.action || 'updated'
})
}
@@ -109,6 +110,7 @@ module.exports = class PageHistory extends Model {
'pageHistory.id',
'pageHistory.path',
'pageHistory.authorId',
'pageHistory.action',
'pageHistory.createdAt',
{
authorName: 'author.name'
@@ -130,6 +132,7 @@ module.exports = class PageHistory extends Model {
'pageHistory.id',
'pageHistory.path',
'pageHistory.authorId',
'pageHistory.action',
'pageHistory.createdAt',
{
authorName: 'author.name'