Skip to content

Commit

Permalink
fix: Add package version for Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Nov 29, 2024
1 parent 074dd34 commit b886cff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions lib/gateways/smpp_gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class SMPPGateway {
},
(pdu) => {
resolve({ messageId: pdu.message_id, commandStatus: pdu.command_status });
}
},
);
});
}
Expand Down Expand Up @@ -108,7 +108,7 @@ class SMPPGateway {
if (pdu.command_status !== 0) {
throw new Error("Failed to connect to SMPP Server!");
}
}
},
);
});
}
Expand Down

0 comments on commit b886cff

Please sign in to comment.