@manyos/smileconnect-api 1.52.0 → 1.52.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.
|
@@ -390,13 +390,15 @@ async function getOppositeAssocTypeByType(assocType) {
|
|
|
390
390
|
async function getOppositeAssocTypeByCode(assocCode) {
|
|
391
391
|
const assocTypes = await getAssocTypes();
|
|
392
392
|
return assocTypes.find(assoc => {
|
|
393
|
-
return assoc.assocCode === assocCode
|
|
393
|
+
return assoc.assocCode === assocCode;å
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
function doesCIRelationExists(ticketRelations, newRelation) {
|
|
398
|
+
log.debug('check for relation old', ticketRelations)
|
|
399
|
+
log.debug('check for relation new', newRelation)
|
|
398
400
|
const relationFound = ticketRelations.find(relation => {
|
|
399
|
-
return (relation.ciId === newRelation.ciId &&
|
|
401
|
+
return ((relation.ciId === newRelation.ciId || relation.ciId === newRelation.ciReconId || relation.ciReconId === newRelation.ciId) &&
|
|
400
402
|
relation.relationType === newRelation.relationType);
|
|
401
403
|
});
|
|
402
404
|
if (relationFound) {
|
package/docs/releases.md
CHANGED