Skip to content

Commit 2d054ea

Browse files
committed
Don't use sales strategies as a fallback for the end date'
1 parent 93fb19c commit 2d054ea

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/ingestors/zora-internal/zora-metadata.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,7 @@ export class ZoraMetadataProvider {
6161
if (fallbackStartDateValue) {
6262
startDate = new Date(parseInt(fallbackStartDateValue) * 1000);
6363
}
64-
65-
let fallbackEndDateValue =
66-
tokenDetails.mintable?.mint_context.sale_strategies[0].fixed_price?.sale_end ||
67-
tokenDetails.mintable?.mint_context.sale_strategies[0].zora_timed_minter?.sale_end;
68-
if (fallbackEndDateValue) {
69-
endDate = new Date(parseInt(fallbackEndDateValue) * 1000);
70-
}
71-
64+
7265
let liveDate = startDate > new Date() ? startDate : new Date();
7366

7467
return { startDate, endDate, liveDate };

0 commit comments

Comments
 (0)