We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3abc4cd commit b355d44Copy full SHA for b355d44
packages/server/src/services/web-server-settings.ts
@@ -1,6 +1,5 @@
1
import { db } from "@dokploy/server/db";
2
import { webServerSettings } from "@dokploy/server/db/schema";
3
-import { TRPCError } from "@trpc/server";
4
import { eq } from "drizzle-orm";
5
6
/**
@@ -38,7 +37,7 @@ export const updateWebServerSettings = async (
38
37
...updates,
39
updatedAt: new Date(),
40
})
41
- .where(eq(webServerSettings.id, current.id))
+ .where(eq(webServerSettings.id, current?.id ?? ""))
42
.returning();
43
44
return updated;
0 commit comments