return early when receiving a message for a user on free plan

This commit is contained in:
m5r 2021-10-21 00:38:37 +02:00
parent 730030f6f1
commit a4859137fe

View File

@ -63,6 +63,7 @@ export default async function incomingMessageHandler(req: BlitzApiRequest, res:
// accept the webhook but don't store incoming message // accept the webhook but don't store incoming message
// because the organization is on the free plan // because the organization is on the free plan
res.status(200).end(); res.status(200).end();
return;
} }
const phoneNumber = phoneNumbersWithActiveSub.find((phoneNumber) => { const phoneNumber = phoneNumbersWithActiveSub.find((phoneNumber) => {