From 29255ed9d07cf4195646198ad8aeda80c240ed9f Mon Sep 17 00:00:00 2001 From: gustrb Date: Mon, 11 Nov 2024 14:29:41 -0300 Subject: [PATCH] chore: dont return null --- apps/meteor/ee/server/patches/verifyContactChannel.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/meteor/ee/server/patches/verifyContactChannel.ts b/apps/meteor/ee/server/patches/verifyContactChannel.ts index 1b5e9c66e343..7a9be33dca42 100644 --- a/apps/meteor/ee/server/patches/verifyContactChannel.ts +++ b/apps/meteor/ee/server/patches/verifyContactChannel.ts @@ -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(); } @@ -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 });