From d73911a52d14b03d1c2a8a3c71e3c148d49cd7ab Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 29 Jul 2022 03:01:21 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index c301628..c25a644 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartlog-destination-receiver', - version: '2.0.2', + version: '2.0.3', description: 'a smartlog destination for smartlog-receiver' } diff --git a/ts/index.ts b/ts/index.ts index 2d99111..209209c 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -21,10 +21,8 @@ export class SmartlogDestinationReceiver implements ILogDestination { private errorCounter = 0; public async handleLog(logPackageArg: ILogPackage) { const response = await this.webrequest.postJson(this.options.receiverEndpoint, { - requestBody: { - auth: plugins.smarthash.sha256FromStringSync(this.options.passphrase), - logPackage: logPackageArg, - }, + auth: plugins.smarthash.sha256FromStringSync(this.options.passphrase), + logPackage: logPackageArg, }).catch(err => { if (this.errorCounter % 100 === 0) { console.error(`There seems to be an error with logging.`);