feat: export creation date in dumped content (#2345)

* Export creation date in dumped content

* date_creation -> dateCreated

Co-authored-by: Joris Langlois <joris.langlois@knplabs.com>
This commit is contained in:
jaljo
2020-08-31 17:28:55 +02:00
committed by GitHub
parent ae733392f3
commit cda1f1e805
7 changed files with 46 additions and 26 deletions

View File

@@ -411,7 +411,7 @@ module.exports = {
// -> Pages
await pipeline(
WIKI.models.knex.column('path', 'localeCode', 'title', 'description', 'contentType', 'content', 'isPublished', 'updatedAt').select().from('pages').where({
WIKI.models.knex.column('path', 'localeCode', 'title', 'description', 'contentType', 'content', 'isPublished', 'updatedAt', 'createdAt').select().from('pages').where({
isPrivate: false
}).stream(),
new stream.Transform({