Skip to content

Commit

Permalink
added some more fields in the create poll route's output
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed Jun 25, 2024
1 parent 4a7b9cc commit c3a5d16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nextjs/app/api/create-poll/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export const POST = async (req: NextRequest) => {
return NextResponse.json({
message: "The poll is created successfully",
pollId: Number(pollCreatedEvent.args.pollId),
startTime: Number(pollCreatedEvent.args.startTime),
endTime: Number(pollCreatedEvent.args.endTime),
});
} catch (err) {
console.log(err);
Expand Down

0 comments on commit c3a5d16

Please sign in to comment.