Commit b21c4fec10ce785df9c883db22c69406e8f73990

Authored by Adhidarma Hadiwinoto
1 parent ff8221ba96
Exists in master

USSD: Return on error

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

lib/http-command-server/router-ussd.js
... ... @@ -15,6 +15,8 @@ async function handlerIndex(req, res) {
15 15 error: 'INVALID-PARAMETER',
16 16 message: 'Undefined parameter: code',
17 17 });
  18 +
  19 + return;
18 20 }
19 21  
20 22 const reply = await modem.executeUSSD(req.query.code);