Skip to content

Commit

Permalink
fix: update projects
Browse files Browse the repository at this point in the history
  • Loading branch information
rappix committed Jun 18, 2024
1 parent d8be39f commit bf6095a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/methods/createOrUpdateProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export async function createProject(projectId: number, blockNumber: number, api:
connectOrCreate: royalties,
},
approved: project?.approved?.toString() === 'Approved',
state: project?.approved?.toString() === 'Approved' ? ProjectState.ACCEPTED : ProjectState.SUBMITTED,
createdAt: createdAtBlock.blockDate!.toISOString(),
type: project?.projectType
},
Expand All @@ -130,6 +131,7 @@ export async function createProject(projectId: number, blockNumber: number, api:
connectOrCreate: royalties,
},
approved: project?.approved?.toString() === 'Approved',
state: project?.approved?.toString() === 'Approved' ? ProjectState.ACCEPTED : ProjectState.SUBMITTED,
createdAt: createdAtBlock.blockDate!.toISOString(),
},
});
Expand Down

0 comments on commit bf6095a

Please sign in to comment.