Skip to content

Commit

Permalink
Fixed minted on date (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlajous authored Jul 4, 2023
1 parent 7235664 commit 583ff0f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/drops/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/drops",
"version": "0.0.23",
"version": "0.0.24",
"description": "Drops module for the poap.js library",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/moments/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/moments",
"version": "0.0.23",
"version": "0.0.24",
"description": "Moments module for the poap.js library",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/poaps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/poaps",
"version": "0.0.23",
"version": "0.0.24",
"description": "Poaps module for the poap.js library",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand Down
5 changes: 3 additions & 2 deletions packages/poaps/src/PoapsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,15 @@ export class PoapsClient {
PAGINATED_POAPS_QUERY,
variables,
);

const poaps = data.poaps.map((poap) => {
const { drop } = poap;
const minted_on = new Date(0);
minted_on.setUTCSeconds(poap.minted_on);
return new POAP({
...poap,
...drop,
id: Number(poap.id),
minted_on: new Date(poap.minted_on),
minted_on,
drop_id: Number(poap.drop_id),
start_date: new Date(drop.start_date),
end_date: new Date(drop.end_date),
Expand Down
2 changes: 1 addition & 1 deletion packages/providers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/providers",
"version": "0.0.23",
"version": "0.0.24",
"description": "Providers module for the poap.js library",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/utils",
"version": "0.0.23",
"version": "0.0.24",
"description": "Utils module for the poap.js library",
"type": "module",
"main": "dist/cjs/index.cjs",
Expand Down

0 comments on commit 583ff0f

Please sign in to comment.