Skip to content

Commit 8e6a870

Browse files
committed
fix build
1 parent 7d2f9da commit 8e6a870

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mapper/story.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export abstract class Story<ANS extends ANSContent = Types.Story.AStory> extends
2828
const id = await this.arcId();
2929
const version = this.version();
3030
const type = this.type();
31-
const publicationDate = this.getPublicationDate();
31+
const publicationDate = await this.getPublicationDate();
32+
const displayDate = await this.getDisplayDate();
3233
const headlines = this.getHeadlines();
3334
const subheadlines = this.getSubheadlines();
3435
const description = this.getDescription();
@@ -76,7 +77,7 @@ export abstract class Story<ANS extends ANSContent = Types.Story.AStory> extends
7677
created_date: this.formatDate(new Date()),
7778
first_publish_date: this.formatDate(publicationDate),
7879
publish_date: this.formatDate(publicationDate),
79-
display_date: this.formatDate(this.getDisplayDate()),
80+
display_date: this.formatDate(displayDate),
8081
source,
8182
comments,
8283
taxonomy: {

0 commit comments

Comments
 (0)