From 02d219619da037de0073f1397a109b8e38dd6486 Mon Sep 17 00:00:00 2001 From: Sam Vogelskamp Date: Wed, 5 Jul 2023 13:36:58 +0200 Subject: [PATCH 1/4] :technologist: add error log on missing PRODUCT_NAME --- src/util/call-comment.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/util/call-comment.ts b/src/util/call-comment.ts index 19e2814d..362bd76b 100644 --- a/src/util/call-comment.ts +++ b/src/util/call-comment.ts @@ -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, @@ -43,6 +44,12 @@ export function getCommentSubject( function getProductName() { const productName = process.env.PRODUCT_NAME; + + if (!productName) + errorLogger( + "getProductName", + "Missing environment variable PRODUCT_NAME, using CLINQ." + ); return productName || "CLINQ"; } From cd8c90d1c96f0b015028499740a0b5c18fcbadec Mon Sep 17 00:00:00 2001 From: Sam Vogelskamp Date: Wed, 5 Jul 2023 13:37:09 +0200 Subject: [PATCH 2/4] 0.19.7 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bf4f289f..7e3d1ce9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sipgate/integration-bridge", - "version": "0.19.6", + "version": "0.19.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sipgate/integration-bridge", - "version": "0.19.6", + "version": "0.19.7", "license": "UNLICENSED", "dependencies": { "@google-cloud/pubsub": "^3.7.1", diff --git a/package.json b/package.json index 435c7f95..72af7015 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sipgate/integration-bridge", - "version": "0.19.6", + "version": "0.19.7", "description": "sipgate Integration Bridge Framework", "main": "dist/index.js", "types": "dist/index.d.ts", From 8c0c55f76dde949b0cd9cf78b3230503e2301eba Mon Sep 17 00:00:00 2001 From: hafemann Date: Wed, 5 Jul 2023 14:47:45 +0200 Subject: [PATCH 3/4] :technologist: export getProductName function --- src/util/call-comment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/call-comment.ts b/src/util/call-comment.ts index 362bd76b..5404dc34 100644 --- a/src/util/call-comment.ts +++ b/src/util/call-comment.ts @@ -42,7 +42,7 @@ export function getCommentSubject( } } -function getProductName() { +export function getProductName() { const productName = process.env.PRODUCT_NAME; if (!productName) From f04624aa61ad148d288567808ac73b2fe78305ab Mon Sep 17 00:00:00 2001 From: hafemann Date: Wed, 5 Jul 2023 14:48:25 +0200 Subject: [PATCH 4/4] 0.19.8 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7e3d1ce9..2c55025f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sipgate/integration-bridge", - "version": "0.19.7", + "version": "0.19.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sipgate/integration-bridge", - "version": "0.19.7", + "version": "0.19.8", "license": "UNLICENSED", "dependencies": { "@google-cloud/pubsub": "^3.7.1", diff --git a/package.json b/package.json index 72af7015..10c829d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sipgate/integration-bridge", - "version": "0.19.7", + "version": "0.19.8", "description": "sipgate Integration Bridge Framework", "main": "dist/index.js", "types": "dist/index.d.ts",