@manyos/smileconnect-api 1.36.2 → 1.36.4
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/app.js +3 -0
- package/package.json +1 -1
- package/routes/ticketRoutes.js +1 -1
package/app.js
CHANGED
|
@@ -279,6 +279,9 @@ app.use('/v1/:ticketType/:parentId/worklogs', function(req, res, next) {
|
|
|
279
279
|
req.ticketType = req.params.ticketType;
|
|
280
280
|
const parentId = req.params.parentId;
|
|
281
281
|
req.parentId = parentId;
|
|
282
|
+
|
|
283
|
+
//Add worklog to parent event base
|
|
284
|
+
req.parentEventBase = req.parentEventBase + '_Worklog'
|
|
282
285
|
const allowedTypes = ['incidents', 'problems', 'workorders', 'changes'];
|
|
283
286
|
if (allowedTypes.includes(req.ticketType)) {
|
|
284
287
|
req.ticketConfig = config.ticketConfig[req.ticketType];
|
package/package.json
CHANGED