@manyos/smileconnect-api 1.43.0 → 1.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/conf/clients.json
CHANGED
|
@@ -12,7 +12,7 @@ const scriptController = require('./scriptController');
|
|
|
12
12
|
const ticketCache = new CacheService(process.env.CACHETTL_TICKETS || 1); // Create a new cache service instance
|
|
13
13
|
|
|
14
14
|
async function createWorklog(ticketConfig, clientConfig, ticketId, data, globalScriptParams) {
|
|
15
|
-
const scripts = clientConfig[ticketConfig.requestTypeWorkLog].scripts
|
|
15
|
+
const scripts = clientConfig[ticketConfig.requestTypeWorkLog].scripts;
|
|
16
16
|
const mapping = config.getMapping(ticketConfig.requestTypeWorkLog);
|
|
17
17
|
const fields = clientConfig[ticketConfig.requestTypeWorkLog].fields;
|
|
18
18
|
|
|
@@ -53,7 +53,7 @@ async function createWorklog(ticketConfig, clientConfig, ticketId, data, globalS
|
|
|
53
53
|
const viewAccessConstant = clientConstants.find(element => element.name === "View Access")
|
|
54
54
|
//run only if isPublic is set and no Constant is defined
|
|
55
55
|
if (data.isPublic && !viewAccessConstant) {
|
|
56
|
-
if (data.isPublic === true) {
|
|
56
|
+
if (data.isPublic === true || data.isPublic === "true") {
|
|
57
57
|
clientConstants.push({"name": "View Access", "value" : "Public"});
|
|
58
58
|
} else {
|
|
59
59
|
clientConstants.push({"name": "View Access", "value" : "Internal"});
|
package/docs/releases.md
CHANGED