@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
@@ -1,6 +1,9 @@
1
1
  # Release Notes
2
2
 
3
3
  ## API
4
+ ### 1.52.1 - 12.11.11
5
+ Fix issue: Task CI relations might be removed on duplicate updates
6
+
4
7
  ### 1.52.0 - 09.11.21
5
8
  Allow 16k header
6
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.52.0",
3
+ "version": "1.52.1",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {