api: Fixed fictionalDate being Jan 1, 1970 instead of null if none is set.
the build was successful

This commit is contained in:
2019-01-17 21:12:05 +01:00
parent 3ed3e50486
commit 8bfc0dad14
+1 -1
View File
@@ -18,7 +18,7 @@ class Comment {
this.author = author this.author = author
this.characterName = characterName this.characterName = characterName
this.character = character != null ? CommentCharacter.fromData(character) : null this.character = character != null ? CommentCharacter.fromData(character) : null
this.fictionalDate = new Date(fictionalDate) this.fictionalDate = fictionalDate != null ? new Date(fictionalDate) : null
this.createdDate = new Date(createdDate) this.createdDate = new Date(createdDate)
this.editedDate = new Date(editedDate) this.editedDate = new Date(editedDate)
this.source = source this.source = source