commit d2dc61ba0e1c4b952f40895d7c8a4c229166e67e
parent cda857fa64f45fd289bcbc0e4fd8067d4845d526
Author: Henry Unite <unitehenry@gmail.com>
Date: Sat, 28 Feb 2026 06:23:41 +0000
chore: format
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/voice.ts b/voice.ts
@@ -43,7 +43,11 @@ function hold(res: Response): void {
res.send(responseXml);
}
-async function updateCall(accountSid: string, callSid: string, twiml: string) : Promise<void> {
+async function updateCall(
+ accountSid: string,
+ callSid: string,
+ twiml: string,
+): Promise<void> {
const twilioAuthToken: string | undefined = process.env.TWILIO_AUTH_TOKEN;
const twilioClient = twilio(accountSid, twilioAuthToken);
@@ -52,8 +56,8 @@ async function updateCall(accountSid: string, callSid: string, twiml: string) :
log("INFO", "Updating twilio call", { callSid });
await twilioClient.calls(callSid).update({ twiml });
- } catch(error) {
- log('ERROR', 'Failed to update call', { error });
+ } catch (error) {
+ log("ERROR", "Failed to update call", { error });
}
}