Merge pull request #1573 from Human-Connection/1555_import_createdAt_updatedAt_for_comments

Fix import to add createdAt and updatedAt for comments
This commit is contained in:
mattwr18 2019-09-13 20:37:33 +02:00 committed by GitHub
commit eff788ac7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,8 @@ ON CREATE SET
c.content = comment.content,
c.contentExcerpt = comment.contentExcerpt,
c.deleted = comment.deleted,
c.createdAt = comment.createdAt.`$date`,
c.updatedAt = comment.updatedAt.`$date`,
c.disabled = false
WITH c, comment, comment.contributionId as postId
MATCH (post:Post {id: postId})