feat(dokploy): add lobe chat

This commit is contained in:
Mauricio Siu
2024-10-27 20:48:42 -06:00
parent 0e8a3c36f3
commit cf666ceb19
5 changed files with 51 additions and 3 deletions

View File

@@ -357,9 +357,9 @@ export const composeRouter = createTRPCRouter({
const generate = await loadTemplateModule(input.id as TemplatesKeys);
const admin = await findAdminById(ctx.user.adminId);
let serverIp = admin.serverIp;
let serverIp = admin.serverIp || "127.0.0.1";
if (!admin.serverIp) {
if (!serverIp) {
throw new TRPCError({
code: "NOT_FOUND",
message: