diff --git a/bin/cli.js b/bin/cli.js index 3798f94..647a352 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -8,9 +8,11 @@ import * as Sentry from "@sentry/node"; import SomlengClient from "../lib/somleng_client.js"; import HTTPServer from "../lib/http_server/index.js"; import { GoIPGateway, SMPPGateway, DummyGateway } from "../lib/gateways/index.js"; +import packageJson from "../package.json"; Sentry.init({ dsn: "https://b4c80554595b4e75a9904318a8fe005d@o125014.ingest.sentry.io/4504756942864384", + release: packageJson.version, }); async function main() { diff --git a/lib/gateways/smpp_gateway.js b/lib/gateways/smpp_gateway.js index 235fe1e..ea32cb2 100644 --- a/lib/gateways/smpp_gateway.js +++ b/lib/gateways/smpp_gateway.js @@ -51,7 +51,7 @@ class SMPPGateway { }, (pdu) => { resolve({ messageId: pdu.message_id, commandStatus: pdu.command_status }); - } + }, ); }); } @@ -108,7 +108,7 @@ class SMPPGateway { if (pdu.command_status !== 0) { throw new Error("Failed to connect to SMPP Server!"); } - } + }, ); }); }