Skip to content

Commit

Permalink
Merge branch 'main' of github.com:sipgate/integration-bridge-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
fgladisch committed Jul 5, 2023
2 parents 0833f4e + f04624a commit e4849fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sipgate/integration-bridge",
"version": "0.19.6",
"version": "0.19.8",
"description": "sipgate Integration Bridge Framework",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
11 changes: 9 additions & 2 deletions src/util/call-comment.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { CallDirection, CallState } from "../models";
import moment from "moment";
import { CallDirection, CallState } from "../models";
import { errorLogger } from "./logger.util";

export function getCommentSubject(
state: CallState,
Expand Down Expand Up @@ -41,8 +42,14 @@ export function getCommentSubject(
}
}

function getProductName() {
export function getProductName() {
const productName = process.env.PRODUCT_NAME;

if (!productName)
errorLogger(
"getProductName",
"Missing environment variable PRODUCT_NAME, using CLINQ."
);
return productName || "CLINQ";
}

Expand Down

0 comments on commit e4849fa

Please sign in to comment.