refactor(databases): show ip in external connection instead of hostname

This commit is contained in:
Mauricio Siu
2024-07-20 15:23:44 -06:00
parent 60d6d781be
commit f36de7b2f5
6 changed files with 14 additions and 8 deletions

View File

@@ -252,6 +252,10 @@ export const settingsRouter = createTRPCRouter({
}
return readConfigInPath(input.path);
}),
getIp: protectedProcedure.query(async () => {
const admin = await findAdmin();
return admin.serverIp;
}),
getOpenApiDocument: protectedProcedure.query(
async ({ ctx }): Promise<unknown> => {