From 153aca0ccb5bea27b8c554f8a31662e1ef37c503 Mon Sep 17 00:00:00 2001 From: User user Date: Wed, 19 May 2021 11:41:14 +0200 Subject: [PATCH] Add missing await to addAdapter init --- meta.json | 2 +- package.json | 2 +- src/base.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta.json b/meta.json index 75f91dc..639a010 100644 --- a/meta.json +++ b/meta.json @@ -1,6 +1,6 @@ { "name": "logging", - "version": "3.1.1", + "version": "3.1.2", "description": "", "author": "Fabian Stamm ", "contributors": [], diff --git a/package.json b/package.json index 04bdbb9..49a07bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/logging", - "version": "3.1.1", + "version": "3.1.2", "description": "", "main": "out/index.js", "types": "out/index.d.ts", diff --git a/src/base.ts b/src/base.ts index ddbdc1d..4979e4f 100644 --- a/src/base.ts +++ b/src/base.ts @@ -222,7 +222,7 @@ export class LoggingBase extends LoggingInterface { if (!init) { add(); } else { - Promise.resolve(init).then(add); + await Promise.resolve(init).then(add); } }