feat: fixed server cfg stale in replication

This commit is contained in:
Akhil Mohan
2024-02-07 11:36:13 +05:30
parent 609b224ca9
commit 61ff732ec0
8 changed files with 31 additions and 38 deletions
+2 -2
View File
@@ -513,9 +513,9 @@ export const registerRoutes = async (
})
}
},
handler: () => {
handler: async () => {
const cfg = getConfig();
const serverCfg = getServerCfg();
const serverCfg = await getServerCfg();
return {
date: new Date(),
message: "Ok" as const,