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",
"version": "3.1.1",
"version": "3.1.2",
"description": "",
"author": "Fabian Stamm <dev@fabianstamm.de>",
"contributors": [],

View File

@ -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",

View File

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