feat: delete page
This commit is contained in:
1 parent
faa1f389d9
commit
658c105ab5
24 files changed
+369
-120
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user