From e0a121009d83af0288c9216c115be18b4eccf989 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Sat, 15 Jul 2023 22:59:18 +0000 Subject: [PATCH] fix issue with client sync init --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index bbe2296..a6835fc 100644 --- a/src/main.js +++ b/src/main.js @@ -1197,8 +1197,8 @@ app.delete(`/api/:node(${nodeRegexP})/:type(${typeRegexP})/:vmid(${vmidRegexP})/ await handleResponse(params.node, result, res); }); -setupClientSync(app, server, db.getGlobalConfig().clientsync); - const server = app.listen(listenPort, () => { console.log(`proxmoxaas-api v${api.version} listening on port ${listenPort}`); }); + +setupClientSync(app, server, db.getGlobalConfig().clientsync);