Add missing await to addAdapter init

This commit is contained in:
User user 2021-05-19 11:41:14 +02:00
parent 7ca0c4fd72
commit 153aca0ccb
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "logging", "name": "logging",
"version": "3.1.1", "version": "3.1.2",
"description": "", "description": "",
"author": "Fabian Stamm <dev@fabianstamm.de>", "author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [], "contributors": [],

View File

@ -1,6 +1,6 @@
{ {
"name": "@hibas123/logging", "name": "@hibas123/logging",
"version": "3.1.1", "version": "3.1.2",
"description": "", "description": "",
"main": "out/index.js", "main": "out/index.js",
"types": "out/index.d.ts", "types": "out/index.d.ts",

View File

@ -222,7 +222,7 @@ export class LoggingBase extends LoggingInterface {
if (!init) { if (!init) {
add(); add();
} else { } else {
Promise.resolve(init).then(add); await Promise.resolve(init).then(add);
} }
} }