mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-08 13:05:17 +00:00
fix: address PR review feedback
- Use "kill" audit action for killContainer instead of "stop" - Pass undefined instead of empty string for optional serverId
This commit is contained in:
+1
-1
@@ -307,7 +307,7 @@ const Service = (
|
|||||||
<TabsContent value="containers">
|
<TabsContent value="containers">
|
||||||
<div className="flex flex-col gap-4 pt-2.5">
|
<div className="flex flex-col gap-4 pt-2.5">
|
||||||
<ShowComposeContainers
|
<ShowComposeContainers
|
||||||
serverId={data?.serverId || ""}
|
serverId={data?.serverId || undefined}
|
||||||
appName={data?.appName || ""}
|
appName={data?.appName || ""}
|
||||||
appType={data?.composeType || "docker-compose"}
|
appType={data?.composeType || "docker-compose"}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ export const dockerRouter = createTRPCRouter({
|
|||||||
}
|
}
|
||||||
await containerKill(input.containerId, input.serverId);
|
await containerKill(input.containerId, input.serverId);
|
||||||
await audit(ctx, {
|
await audit(ctx, {
|
||||||
action: "stop",
|
action: "kill",
|
||||||
resourceType: "docker",
|
resourceType: "docker",
|
||||||
resourceId: input.containerId,
|
resourceId: input.containerId,
|
||||||
resourceName: input.containerId,
|
resourceName: input.containerId,
|
||||||
|
|||||||
Reference in New Issue
Block a user