mirror of
https://github.com/wg-easy/wg-easy.git
synced 2026-10-24 07:41:16 +00:00
improve startup handling
fixes https://github.com/wg-easy/wg-easy/issues/2788
This commit is contained in:
parent
0e1fe302ea
commit
e1889bb1da
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue