Add missing await to addAdapter init
This commit is contained in:
parent
7ca0c4fd72
commit
153aca0ccb
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "logging",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.2",
|
||||
"description": "",
|
||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||
"contributors": [],
|
||||
|
@ -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",
|
||||
|
@ -222,7 +222,7 @@ export class LoggingBase extends LoggingInterface {
|
||||
if (!init) {
|
||||
add();
|
||||
} else {
|
||||
Promise.resolve(init).then(add);
|
||||
await Promise.resolve(init).then(add);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user