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 });