diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:09:48 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:09:48 +0000 |
| commit | 88baf168df46d1f03244f5669bb672a712416759 (patch) | |
| tree | 191ea25015dbcbbc2647e6f8a37b523e204ff17b /src | |
| parent | 5b6bf700bc3478da996b6afb927df9ade6286016 (diff) | |
syntax error
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
