Compare commits

...

6 Commits

Author SHA1 Message Date
bd154089c3 2.0.11 2023-08-29 11:44:49 +02:00
0be693da60 fix(core): update 2023-08-29 11:44:48 +02:00
040c93dec3 2.0.10 2023-08-29 11:43:07 +02:00
21e55bd341 fix(core): update 2023-08-29 11:43:07 +02:00
f1d04fe63c 2.0.9 2023-08-29 11:33:07 +02:00
49c4660131 fix(core): update 2023-08-29 11:33:06 +02:00
4 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@apiclient.xyz/elasticsearch",
"version": "2.0.8",
"version": "2.0.11",
"private": false,
"description": "log to elasticsearch in a kibana compatible format",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiclient.xyz/elasticsearch',
version: '2.0.8',
version: '2.0.11',
description: 'log to elasticsearch in a kibana compatible format'
}

View File

@ -107,7 +107,6 @@ export class ElasticDoc {
if (this.onlyNew) {
if (this.latestTimestamp && optionsArg.timestamp <= this.latestTimestamp) {
// Omit the document
return;
} else {
await this.client.index({
index: this.index,

View File

@ -54,7 +54,7 @@ export class ElsSmartlogDestination<T> {
return;
}
this.client.index(
await this.client.index(
{
index: indexToUse,
body: {
@ -68,7 +68,7 @@ export class ElsSmartlogDestination<T> {
get logDestination(): ILogDestination {
return {
handleLog: async (smartlogPackageArg: ILogPackage) => {
this.log(smartlogPackageArg);
await this.log(smartlogPackageArg);
},
};
}