mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-25 13:18:47 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -84,7 +84,7 @@ export const ShowPatches = ({ id, type }: Props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Card className="bg-background">
|
<Card className="bg-background">
|
||||||
<CardHeader className="flex flex-row items-center justify-between">
|
<CardHeader className="flex flex-row items-center justify-between">
|
||||||
<div>
|
<div>
|
||||||
<CardTitle>Patches</CardTitle>
|
<CardTitle>Patches</CardTitle>
|
||||||
<CardDescription>
|
<CardDescription>
|
||||||
@@ -185,8 +185,7 @@ export const ShowPatches = ({ id, type }: Props) => {
|
|||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
<div className="flex items-center gap-1">
|
<div className="flex items-center gap-1">
|
||||||
{(patch.type === "update" ||
|
{(patch.type === "update" || patch.type === "create") && (
|
||||||
patch.type === "create") && (
|
|
||||||
<EditPatchDialog
|
<EditPatchDialog
|
||||||
patchId={patch.patchId}
|
patchId={patch.patchId}
|
||||||
entityId={id}
|
entityId={id}
|
||||||
|
|||||||
@@ -232,11 +232,7 @@ export const patchRouter = createTRPCRouter({
|
|||||||
// For delete patches, show current file content from repo (what will be deleted)
|
// For delete patches, show current file content from repo (what will be deleted)
|
||||||
if (existingPatch?.type === "delete") {
|
if (existingPatch?.type === "delete") {
|
||||||
try {
|
try {
|
||||||
return await readPatchRepoFile(
|
return await readPatchRepoFile(input.id, input.type, input.filePath);
|
||||||
input.id,
|
|
||||||
input.type,
|
|
||||||
input.filePath,
|
|
||||||
);
|
|
||||||
} catch {
|
} catch {
|
||||||
return "(File not found in repo - will be removed if it exists)";
|
return "(File not found in repo - will be removed if it exists)";
|
||||||
}
|
}
|
||||||
@@ -342,11 +338,7 @@ export const patchRouter = createTRPCRouter({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return await markPatchForDeletion(
|
return await markPatchForDeletion(input.filePath, input.id, input.type);
|
||||||
input.filePath,
|
|
||||||
input.id,
|
|
||||||
input.type,
|
|
||||||
);
|
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// Cleanup
|
// Cleanup
|
||||||
|
|||||||
Reference in New Issue
Block a user