From f6cf547414055ef6678a249c432050be089ed50b Mon Sep 17 00:00:00 2001 From: AtHeartEngineer <1675654+AtHeartEngineer@users.noreply.github.com> Date: Sat, 11 Nov 2023 14:58:56 +0300 Subject: [PATCH 1/2] change the-word room id --- src/endpoints/gateways/theWord.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/endpoints/gateways/theWord.ts b/src/endpoints/gateways/theWord.ts index 6d7ad72..969df5d 100644 --- a/src/endpoints/gateways/theWord.ts +++ b/src/endpoints/gateways/theWord.ts @@ -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({ From aca43b3b957ed1dabff9a061bf323a88f2aabca7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 11 Nov 2023 15:24:21 +0000 Subject: [PATCH 2/2] chore(deps): bump axios from 1.5.0 to 1.6.1 Bumps [axios](https://github.com/axios/axios) from 1.5.0 to 1.6.1. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v1.5.0...v1.6.1) --- updated-dependencies: - dependency-name: axios dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4298bba..a8c1809 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2949,9 +2949,9 @@ } }, "node_modules/axios": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.0.tgz", - "integrity": "sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.1.tgz", + "integrity": "sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0",