From 88baf168df46d1f03244f5669bb672a712416759 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Thu, 7 Mar 2024 22:09:48 +0000 Subject: syntax error --- src/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.js b/src/app.js index 01cb753..9b47728 100644 --- a/src/app.js +++ b/src/app.js @@ -29,9 +29,9 @@ app.post('/sms', (req, res) => { const forwardedMessage = `${senderSubscription.name} said: ${body}`; sendTextMessage(otherSubscriptions, forwardedMessage); - const abbreviatedBody = body.length() > 10 ? `${body.slice(0, 8)}...` : body; + const abbreviatedBody = body.length > 10 ? `${body.slice(0, 8)}...` : body; const confirmationMessage = ` - Your message was forwarded to ${otherSubscriptions.length()} + Your message was forwarded to ${otherSubscriptions.length} recipients: "${abbreviatedBody}". Only you can see this message. `.replace(/ +/g, ' '); sendTextMessage([senderSubscription], confirmationMessage); -- cgit v1.2.3