mirror of
https://github.com/dokploy/dokploy.git
synced 2026-06-13 19:09:49 +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">
|
||||
<div className="flex flex-col gap-4 pt-2.5">
|
||||
<ShowComposeContainers
|
||||
serverId={data?.serverId || ""}
|
||||
serverId={data?.serverId || undefined}
|
||||
appName={data?.appName || ""}
|
||||
appType={data?.composeType || "docker-compose"}
|
||||
/>
|
||||
|
||||
@@ -135,7 +135,7 @@ export const dockerRouter = createTRPCRouter({
|
||||
}
|
||||
await containerKill(input.containerId, input.serverId);
|
||||
await audit(ctx, {
|
||||
action: "stop",
|
||||
action: "kill",
|
||||
resourceType: "docker",
|
||||
resourceId: input.containerId,
|
||||
resourceName: input.containerId,
|
||||
|
||||
Reference in New Issue
Block a user