Skip to content

Commit e4849fa

Browse files
committed
Merge branch 'main' of github.com:sipgate/integration-bridge-framework
2 parents 0833f4e + f04624a commit e4849fa

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sipgate/integration-bridge",
3-
"version": "0.19.6",
3+
"version": "0.19.8",
44
"description": "sipgate Integration Bridge Framework",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/util/call-comment.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { CallDirection, CallState } from "../models";
21
import moment from "moment";
2+
import { CallDirection, CallState } from "../models";
3+
import { errorLogger } from "./logger.util";
34

45
export function getCommentSubject(
56
state: CallState,
@@ -41,8 +42,14 @@ export function getCommentSubject(
4142
}
4243
}
4344

44-
function getProductName() {
45+
export function getProductName() {
4546
const productName = process.env.PRODUCT_NAME;
47+
48+
if (!productName)
49+
errorLogger(
50+
"getProductName",
51+
"Missing environment variable PRODUCT_NAME, using CLINQ."
52+
);
4653
return productName || "CLINQ";
4754
}
4855

0 commit comments

Comments
 (0)