fix issue with client sync init

This commit is contained in:
Arthur Lu 2023-07-15 22:59:18 +00:00
parent e869834eb3
commit e0a121009d

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