@elastic.io/oih-standard-library
Advanced tools
Comparing version 1.0.0-rc7 to 1.0.0-rc8
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../constants"); | ||
const { messages } = require('elasticio-node'); | ||
class Delete { | ||
@@ -35,7 +36,7 @@ constructor(logger) { | ||
this.logger.info('Finished processing deleteById action'); | ||
return {}; | ||
return messages.newEmptyMessage(); | ||
} | ||
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type); | ||
this.logger.info('Finished processing deleteById action'); | ||
return { id: deletedId }; | ||
return messages.newMessageWithBody({ id: deletedId }); | ||
} | ||
@@ -85,7 +86,7 @@ catch (e) { | ||
this.logger.info('Finished processing deleteByUniqueCriteria action'); | ||
return {}; | ||
return messages.newEmptyMessage(); | ||
} | ||
this.logger.trace('Successfully process delete call for criteria: %j and type: %j', criteria, type); | ||
this.logger.info('Finished processing deleteByUniqueCriteria action'); | ||
return { id: deletedId }; | ||
return messages.newMessageWithBody({ id: deletedId }); | ||
} | ||
@@ -92,0 +93,0 @@ catch (e) { |
import { ID, OBJECT_TYPE, UNIQUE_CRITERIA } from '../constants'; | ||
const { messages } = require('elasticio-node'); | ||
@@ -57,7 +58,7 @@ export abstract class Delete { | ||
this.logger.info('Finished processing deleteById action'); | ||
return {}; | ||
return messages.newEmptyMessage(); | ||
} | ||
this.logger.trace('Successfully process delete call for id: %j and type: %j', deletedId, type); | ||
this.logger.info('Finished processing deleteById action'); | ||
return { id: deletedId }; | ||
return messages.newMessageWithBody({ id: deletedId }); | ||
} catch (e) { | ||
@@ -108,7 +109,7 @@ this.logger.error('Unexpected error while processing delete call for message: %j', msg, e); | ||
this.logger.info('Finished processing deleteByUniqueCriteria action'); | ||
return {}; | ||
return messages.newEmptyMessage(); | ||
} | ||
this.logger.trace('Successfully process delete call for criteria: %j and type: %j', criteria, type); | ||
this.logger.info('Finished processing deleteByUniqueCriteria action'); | ||
return { id: deletedId }; | ||
return messages.newMessageWithBody({ id: deletedId }); | ||
} catch (e) { | ||
@@ -115,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-rc7", | ||
"version": "1.0.0-rc8", | ||
"description": "Library for OIH standards implementation", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
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
39426
332