|
|
|
@ -32,7 +32,7 @@ async function sendEmail(text, recordedAt) {
|
|
|
|
body: JSON.stringify({
|
|
|
|
body: JSON.stringify({
|
|
|
|
from: MAIL_FROM,
|
|
|
|
from: MAIL_FROM,
|
|
|
|
to: recipients,
|
|
|
|
to: recipients,
|
|
|
|
subject: 'New Pebble voice memo',
|
|
|
|
subject: `${text}`,
|
|
|
|
text: `${text}\n\nRecorded ${recordedAt.toLocaleString()}`,
|
|
|
|
text: `${text}\n\nRecorded ${recordedAt.toLocaleString()}`,
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
signal: AbortSignal.timeout(10_000),
|
|
|
|
signal: AbortSignal.timeout(10_000),
|
|
|
|
|