|
@ -23,7 +23,7 @@ class Story { |
|
|
this.category = category |
|
|
this.category = category |
|
|
this.createdDate = new Date(createdDate) |
|
|
this.createdDate = new Date(createdDate) |
|
|
this.updatedDate = new Date(updatedDate) |
|
|
this.updatedDate = new Date(updatedDate) |
|
|
this.fictionalDate = new Date(fictionalDate) |
|
|
|
|
|
|
|
|
this.fictionalDate = fictionalDate != null ? new Date(fictionalDate) : null |
|
|
this.tags = tags.map(dt => new Tag(dt.kind, dt.name)) |
|
|
this.tags = tags.map(dt => new Tag(dt.kind, dt.name)) |
|
|
this.chapters = chapters != null ? chapters.map(c => new Chapter(c.id, c.title, c.author, c.source, c.createdDate, c.fictionalDate, c.editedDate)) : null |
|
|
this.chapters = chapters != null ? chapters.map(c => new Chapter(c.id, c.title, c.author, c.source, c.createdDate, c.fictionalDate, c.editedDate)) : null |
|
|
} |
|
|
} |
|
|