Skip to content

Commit

Permalink
fix: Exp to ms
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia committed Jul 21, 2023
1 parent 185e078 commit a67d45b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ports/orders/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ export function fromOrderFragment(
? fragment.nft.issuedId
: fragment.nft.tokenURI?.split('/').pop() ?? ''

let expiresAt = fragment.expiresAt

if (expiresAt.length < 13) {
expiresAt = `${expiresAt}000`
}

const order: Order = {
id: fragment.id,
marketplaceAddress: fragment.marketplaceAddress,
Expand All @@ -228,7 +234,7 @@ export function fromOrderFragment(
status: fragment.status,
network,
chainId,
expiresAt: +fragment.expiresAt,
expiresAt: +expiresAt,
createdAt: +fragment.createdAt * 1000,
updatedAt: +fragment.updatedAt * 1000,
issuedId,
Expand Down

0 comments on commit a67d45b

Please sign in to comment.