@manyos/smileconnect-api 1.45.7 → 1.45.8
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.
|
@@ -420,7 +420,12 @@ function doesTicketRelationExists(ticketRelations, newRelation) {
|
|
|
420
420
|
|
|
421
421
|
async function updateRelations(ticketConfig, userConfig, ticketId, relations) {
|
|
422
422
|
log.debug('Checker', {ticketConfig, userConfig, ticketId, relations});
|
|
423
|
-
//
|
|
423
|
+
// Remove Ticket Relations if task
|
|
424
|
+
if (ticketConfig.assocTicketType === 'Task') {
|
|
425
|
+
relations.ticketRelations = undefined
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
//Check CI Relations
|
|
424
429
|
if (relations && relations.ciRelations && Array.isArray(relations.ciRelations)) {
|
|
425
430
|
const existingRelations = await getTicketCIRelations(ticketId);
|
|
426
431
|
log.debug('foundRelations', existingRelations);
|
package/docs/releases.md
CHANGED