Skip to content

Commit

Permalink
fix: return product timestamps in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
bmstefanski committed Feb 17, 2024
1 parent 36c55de commit f6cb80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/platform/shopify/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export function normalizeProduct(product: SingleProductQuery["product"]): Platfo
featuredImage,
seo,
createdAt,
updatedAtTimestamp: +new Date(updatedAt).toString() / 1000,
createdAtTimestamp: +new Date(createdAt).toString() / 1000,
updatedAtTimestamp: new Date(updatedAt).getTime() / 1000,
createdAtTimestamp: new Date(createdAt).getTime() / 1000,
minPrice: priceRange?.minVariantPrice?.amount || 0,
variants: variants?.edges?.map(({ node }) => node) || [],
images: images?.edges?.map(({ node }) => node) || [],
Expand Down

0 comments on commit f6cb80e

Please sign in to comment.