@elastic.io/oih-standard-library
Advanced tools
Comparing version 1.0.0-rc6 to 1.0.0-rc7
@@ -33,7 +33,7 @@ "use strict"; | ||
if (deletedId === null) { | ||
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', id, type); | ||
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', deletedId, type); | ||
this.logger.info('Finished processing deleteById action'); | ||
return {}; | ||
} | ||
this.logger.trace('Successfully process delete call for id: %j and type: %j', id, type); | ||
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type); | ||
this.logger.info('Finished processing deleteById action'); | ||
@@ -81,4 +81,4 @@ return { id: deletedId }; | ||
this.logger.trace('Start deleting object: %j', object); | ||
const id = await this.deleteObject(object, cfg, msg); | ||
if (id === null) { | ||
const deletedId = await this.deleteObject(object, cfg, msg); | ||
if (deletedId === null) { | ||
this.logger.trace('Object with unique criteria: %j and type: %j was not deleted or not found. Returning empty object', criteria, type); | ||
@@ -90,3 +90,3 @@ this.logger.info('Finished processing deleteByUniqueCriteria action'); | ||
this.logger.info('Finished processing deleteByUniqueCriteria action'); | ||
return { id }; | ||
return { id: deletedId }; | ||
} | ||
@@ -93,0 +93,0 @@ catch (e) { |
@@ -55,7 +55,7 @@ import { ID, OBJECT_TYPE, UNIQUE_CRITERIA } from '../constants'; | ||
if (deletedId === null) { | ||
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', id, type); | ||
this.logger.trace('Object with ID: %j and type: %j was not deleted or not found. Returning empty object', deletedId, type); | ||
this.logger.info('Finished processing deleteById action'); | ||
return {}; | ||
} | ||
this.logger.trace('Successfully process delete call for id: %j and type: %j', id, type); | ||
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type); | ||
this.logger.info('Finished processing deleteById action'); | ||
@@ -104,4 +104,4 @@ return { id: deletedId }; | ||
this.logger.trace('Start deleting object: %j', object); | ||
const id = await this.deleteObject(object, cfg, msg); | ||
if (id === null) { | ||
const deletedId = await this.deleteObject(object, cfg, msg); | ||
if (deletedId === null) { | ||
this.logger.trace('Object with unique criteria: %j and type: %j was not deleted or not found. Returning empty object', criteria, type); | ||
@@ -113,3 +113,3 @@ this.logger.info('Finished processing deleteByUniqueCriteria action'); | ||
this.logger.info('Finished processing deleteByUniqueCriteria action'); | ||
return { id }; | ||
return { id: deletedId }; | ||
} catch (e) { | ||
@@ -116,0 +116,0 @@ this.logger.error('Unexpected error while processing delete call for message: %j', msg, e); |
{ | ||
"name": "@elastic.io/oih-standard-library", | ||
"version": "1.0.0-rc6", | ||
"version": "1.0.0-rc7", | ||
"description": "Library for OIH standards implementation", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38974