Skip to content

Commit

Permalink
Merge branch 'main' into password-endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
AtHeartEngineer authored Nov 11, 2023
2 parents 7965872 + de8a8e6 commit ddb4c6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/endpoints/gateways/theWord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ router.post(
'/join',
limiter,
asyncHandler(async (req: Request, res: Response) => {
const { proof, idc } = req.body as { proof: SNARKProof, idc: string };
const { proof, idc } = req.body as { proof: SNARKProof; idc: string };
const isValid = await verifyTheWordProof(proof);
if (isValid) {
const room = await prisma.rooms.findUnique({
const room = (await prisma.rooms.findUnique({
where: {
roomId: '007' + process.env.THEWORD_ITERATION
roomId: '700' + process.env.THEWORD_ITERATION
}
}) as RoomI;
})) as RoomI;
const addedRoom = await addIdentityToIdentityListRooms([room], idc);
if (addedRoom.length === 0) {
res.status(500).json({
Expand Down

0 comments on commit ddb4c6b

Please sign in to comment.