Fix that lol
This commit is contained in:
parent
db5c8ce838
commit
023863b225
2
index.js
2
index.js
|
@ -159,7 +159,7 @@ function sendAlert(accountNumber, transaction, placeName, systemName, zoneNumber
|
||||||
console.error(err);
|
console.error(err);
|
||||||
} else if (row) {
|
} else if (row) {
|
||||||
runCommand(`/var/lib/asterisk/bin/originate ${row.phone} roblox.s.1 0 0 /tmp/${transaction}-alert "IktDQSBTZWN1cmlOZXQiIDwxNDQ3MjAwNDQ4OD4="`).then(() => {
|
runCommand(`/var/lib/asterisk/bin/originate ${row.phone} roblox.s.1 0 0 /tmp/${transaction}-alert "IktDQSBTZWN1cmlOZXQiIDwxNDQ3MjAwNDQ4OD4="`).then(() => {
|
||||||
console.log(`TTS sent to ${row.to}`);
|
console.log(`Alert sent to ${row.phone}`);
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue