Skip to content

Commit

Permalink
fix(rooms) checkpasswordhash route statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
Codetrauma committed Nov 13, 2023
1 parent 6e0f7ae commit c4f0c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/data/db/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export async function updateClaimCode(

/**
* Adds a user's identity commitment to the semaphoreIdentities list and adds their rate commitment to the identities list for each of the identity list rooms that they are in.
* @param {rooms} - The list of rooms that the user is in
* @param {RoomI[] | RoomWithSecretsI[]} rooms - The list of rooms that the user is in
* @param {string} identityCommitment - The user's identity commitment
* @param {string} discordId - The user's discord ID
* @return {string[]} addedRooms - The list of rooms that the user was added to
Expand Down Expand Up @@ -303,7 +303,6 @@ export async function addIdentityToBandadaRooms(
* @param {string} roomId - The ID of the room
* @param {string[]} ethAddresses - The list of Ethereum addresses to add to the group
*/

export async function createEthGroup(
name: string,
roomId: string,
Expand Down
2 changes: 1 addition & 1 deletion src/endpoints/rooms/rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ router.post('/checkpasswordhash/:id', limiter, (req: Request, res: Response) =>
if (room && room.passwordHash === passwordHash) {
res.status(200).json({ success: true });
} else {
res.status(500).json({ success: false });
res.status(400).json({ success: false });
}
})
.catch((error: Error) => {
Expand Down

0 comments on commit c4f0c9f

Please sign in to comment.