clean up notification stuff

This commit is contained in:
m5r
2022-06-01 22:45:49 +02:00
parent 117a77525e
commit 68570ff3d4
7 changed files with 219 additions and 178 deletions

View File

@ -16,11 +16,6 @@ const action: ActionFunction = async ({ params, request }) => {
const formData = Object.fromEntries(await request.formData());
const twilioClient = getTwilioClient(twilioAccount);
try {
console.log({
body: formData.content.toString(),
to: recipient,
from: phoneNumber!.number,
});
const message = await twilioClient.messages.create({
body: formData.content.toString(),
to: recipient,