Skip to content

Commit

Permalink
fix: end date must be date (#114)
Browse files Browse the repository at this point in the history
* fix: end date must be date

* fix: end date huuge
  • Loading branch information
LukasDeco authored May 21, 2024
1 parent 28e97c4 commit e47ce4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions lib/client/indexer/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ export class FutarchyIndexerProposalsClient implements FutarchyProposalsClient {
endSlot: p.end_slot,
// TODO figure this out by slot enqueued maybe
creationDate: new Date(p.created_at),
endDate:
p.ended_at ||
new Date(
new Date(p.created_at).setDate(
new Date(p.created_at).getDate() + 3
)
),
endDate: p.ended_at
? new Date(p.ended_at)
: new Date(
new Date(p.created_at).setDate(
new Date(p.created_at).getDate() + 3
)
),
// TODO figure this out by slot enqueued maybe
finalizationDate: p.completed_at,
dao: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metadaoproject/futarchy-sdk",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.14",
"main": "dist",
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down

0 comments on commit e47ce4c

Please sign in to comment.