fix issue with client sync init

This commit is contained in:
Arthur Lu 2023-07-15 22:59:18 +00:00
parent a48f641ab5
commit 31d414bebc

View File

@ -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);