improve startup handling

fixes https://github.com/wg-easy/wg-easy/issues/2788
This commit is contained in:
Bernd Storath 2026-09-24 12:37:13 +02:00
parent 0e1fe302ea
commit e1889bb1da

View file

@ -18,9 +18,9 @@ const nullObject = new Proxy(
let provider = nullObject as never as DBServiceType;
connect()
.then((db) => {
.then(async (db) => {
provider = db;
WireGuard.Startup();
await WireGuard.Startup();
})
.catch((err) => {
console.log('Failed to connect to Database:', err);