Skip to content

Commit

Permalink
Merge pull request #12 from el-ausspeedruns/patch-1
Browse files Browse the repository at this point in the history
Update sign-up.ts
  • Loading branch information
EwanLyon committed May 25, 2023
2 parents d816d95 + 72d66c8 commit 96a4158
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/nextjs/pages/api/asmm/sign-up.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
INSERT INTO [dbo].[Participants]
VALUES (${body.username},${body.ticketID ?? "NULL"})`;

await sql.query`
INSERT INTO [dbo].[Pledges]
VALUES((SELECT [ParticipantId] FROM [dbo].[Participants] WHERE Username = ${body.username}),1,1)`;

return res.status(200).json({ success: true });
} catch (error) {
return res.status(500).json({ error: error });
Expand Down

0 comments on commit 96a4158

Please sign in to comment.