Skip to content

Commit

Permalink
chore: dont return null
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustrb committed Nov 11, 2024
1 parent 7952afe commit 29255ed
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions apps/meteor/ee/server/patches/verifyContactChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ async function _verifyContactChannel(
}

logger.error({ msg: 'Error verifying contact channel', contactId, visitorId, roomId, error: e });

return null;
throw e;
} finally {
await session.endSession();
}
Expand All @@ -91,10 +90,6 @@ export const runVerifyContactChannel = async (
}

const result = await _verifyContactChannel(params, room);
if (!result) {
logger.debug({ msg: 'Contact channel could not be verified', roomId });
return null;
}

logger.debug({ msg: 'Finding inquiry', roomId });

Expand Down

0 comments on commit 29255ed

Please sign in to comment.