upgrade deps and add comment to XML
All checks were successful
Build and push image for doorman-homeassistant / diff (push) Successful in 10s
Build and push Doorman UI / API / diff (push) Successful in 8s
Build and push image for doorman-homeassistant / docker (push) Has been skipped
Build and push image for doorman-homeassistant / deploy-gitainer (push) Has been skipped
Build and push Doorman UI / API / twilio (push) Successful in 2m39s
All checks were successful
Build and push image for doorman-homeassistant / diff (push) Successful in 10s
Build and push Doorman UI / API / diff (push) Successful in 8s
Build and push image for doorman-homeassistant / docker (push) Has been skipped
Build and push image for doorman-homeassistant / deploy-gitainer (push) Has been skipped
Build and push Doorman UI / API / twilio (push) Successful in 2m39s
This commit is contained in:
parent
88bb1d936f
commit
4bbfdbd7ce
@ -18,15 +18,14 @@
|
||||
"deploy-buzzer-client:staging": "bun run build-twilio-client && bun --filter 'doorman-client' deploy:staging"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
"typescript": "^5.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/twilio": "^3.19.3",
|
||||
"crypto": "^1.0.1",
|
||||
"express-fingerprint": "^1.2.2",
|
||||
"hono": "^4.3.0",
|
||||
"hono": "^4.10.2",
|
||||
"node-fetch": "^3.3.2",
|
||||
"react-otp-input": "^3.1.1",
|
||||
"twilio-cli": "^5.19.4"
|
||||
"twilio-cli": "^5.23.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,7 +15,8 @@
|
||||
"deploy:staging": "twilio-run deploy --load-system-env --env .env.twiliotemplate --service-name doorman --environment=staging --override-existing-project"
|
||||
},
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-dynamodb": "^3.821.0",
|
||||
"@aws-sdk/client-dynamodb": "^3.916.0",
|
||||
"@aws-sdk/lib-dynamodb": "^3.916.0",
|
||||
"@twilio-labs/serverless-runtime-types": "^4.0.1",
|
||||
"@twilio/runtime-handler": "1.3.0",
|
||||
"discord-oauth2": "^2.12.1",
|
||||
@ -25,7 +26,7 @@
|
||||
"is-deep-subset": "^0.1.1",
|
||||
"prom-client": "^15.1.3",
|
||||
"promise.timeout": "^1.2.0",
|
||||
"twilio": "^3.84.1",
|
||||
"twilio": "^5.10.3",
|
||||
"winston": "^3.17.0",
|
||||
"winston-loki": "^6.1.3",
|
||||
"zod": "^3.25.42",
|
||||
|
||||
@ -19,15 +19,15 @@
|
||||
"prom-client": "^15.1.3",
|
||||
"prometheus-remote-write": "^0.5.1",
|
||||
"promise.timeout": "^1.2.0",
|
||||
"twilio": "^3.84.1",
|
||||
"winston": "^3.17.0",
|
||||
"twilio": "^5.10.3",
|
||||
"winston": "^3.18.3",
|
||||
"winston-loki": "^6.1.3",
|
||||
"zod": "^3.25.56",
|
||||
"zod": "^3.25.76",
|
||||
"zod_utilz": "^0.8.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
"concurrently": "^9.1.2",
|
||||
"concurrently": "^9.2.1",
|
||||
"twilio-run": "^3.5.4"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
@ -19,7 +19,7 @@ import { getMetricFromRegistry, withMetrics } from '../../../doorman-api/src/com
|
||||
import { Counter, Summary } from 'prom-client';
|
||||
import { BuzzerActivatedMetrics, registerMetrics } from '../metrics/BuzzerActivatedMetrics';
|
||||
|
||||
const XML_FAIL_FAST_CALLBACK_COMMENT = "<!-- This response is from a fail fast callback -->";
|
||||
const XML_FAIL_FAST_CALLBACK_COMMENT = "This response is from a fail fast callback";
|
||||
|
||||
export const handler: ServerlessFunctionSignature<TwilioContext, BuzzerDialEvent> = withMetrics('buzzer-activated', async function (context, event, callback, metricsRegistry, logger, failFastCallback) {
|
||||
// metrics
|
||||
@ -170,8 +170,7 @@ export const handler: ServerlessFunctionSignature<TwilioContext, BuzzerDialEvent
|
||||
console.log(
|
||||
invokeId + " UngracefulFallback: Cutting it too close to timeout! Skipping notifying users and responding fallback"
|
||||
);
|
||||
// TODO: make this actually work
|
||||
// twiml.play(XML_FAIL_FAST_CALLBACK_COMMENT);
|
||||
twiml.comment(XML_FAIL_FAST_CALLBACK_COMMENT);
|
||||
return [null, twiml];
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user