Compare commits

...

2 Commits

Author SHA1 Message Date
aace2e98e1
release: v0.2.4 2022-01-18 14:57:24 +03:00
f61500f3e6
fix: add timeout to request
* incase the ussd-server is down or unresponsive, return a message to tg
2022-01-18 14:50:20 +03:00
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ussd-tg-proxy",
"version": "0.2.3",
"version": "0.2.4",
"description": "ussd-tg-proxy",
"main": "src/index.js",
"repository": "https://git.grassecon.net/grassrootseconomics/ussd-tg-proxy.git",

View File

@ -8,6 +8,7 @@ async function proxy(sessionId, phone, input = "") {
url: config.get("USSD_ENDPOINT"),
method: "POST",
parse: "string",
timeout: 3000,
form: {
sessionId: sessionId,
phoneNumber: phone,