commit a4361a759062211a1fc5751659117a8ce9014181
parent 07e02cf149f6a15201dab23cd2cda41bf088f27a
Author: Henry Unite <unitehenry@gmail.com>
Date: Sat, 28 Feb 2026 06:43:14 +0000
chore: format
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/voice.ts b/voice.ts
@@ -9,7 +9,7 @@ const DEFAULT_GREETING = "Hello";
const HOLD_MUSIC_URL =
"http://com.twilio.sounds.music.s3.amazonaws.com/MARKOVICHAMP-Borghestral.mp3";
-function buildResponseXml(req: Request, message : string) : string {
+function buildResponseXml(req: Request, message: string): string {
const origin = `${req.protocol}://${req.get("host")}`;
return `<?xml version="1.0" encoding="UTF-8"?>
@@ -61,7 +61,7 @@ interface UpdateCallParams {
twilioAuthToken: string;
}
-async function updateCall(params : UpdateCallParams): Promise<void> {
+async function updateCall(params: UpdateCallParams): Promise<void> {
const twilioClient = twilio(params.accountSid, params.twilioAuthToken);
const twiml = buildResponseXml(params.request, params.message);
@@ -138,6 +138,6 @@ export default async (req: Request, res: Response): Promise<void> => {
callSid,
twilioAuthToken,
request: req,
- message: text
+ message: text,
});
};