Add missing await to addAdapter init
This commit is contained in:
parent
7ca0c4fd72
commit
153aca0ccb
@ -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": [],
|
||||||
|
@ -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",
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user