[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-07-05 05:37:11 +00:00
committed by GitHub
parent f51c51958f
commit ab3a1504cf
3 changed files with 7 additions and 9 deletions
@@ -36,8 +36,8 @@ import { z } from "zod";
const AddPortSchema = z.object({ const AddPortSchema = z.object({
publishedPort: z.number().int().min(1).max(65535), publishedPort: z.number().int().min(1).max(65535),
publishMode: z.enum(["ingress", "host"], { publishMode: z.enum(["ingress", "host"], {
required_error: "Publish mode is required", required_error: "Publish mode is required",
}), }),
targetPort: z.number().int().min(1).max(65535), targetPort: z.number().int().min(1).max(65535),
protocol: z.enum(["tcp", "udp"], { protocol: z.enum(["tcp", "udp"], {
required_error: "Protocol is required", required_error: "Protocol is required",
@@ -250,7 +250,6 @@ export const HandlePorts = ({
); );
}} }}
/> />
</div> </div>
</form> </form>
@@ -68,10 +68,10 @@ export const ShowPorts = ({ applicationId }: Props) => {
</span> </span>
</div> </div>
<div className="flex flex-col gap-1"> <div className="flex flex-col gap-1">
<span className="font-medium">Published Port Mode</span> <span className="font-medium">Published Port Mode</span>
<span className="text-sm text-muted-foreground"> <span className="text-sm text-muted-foreground">
{port.publishMode.toUpperCase()} {port.publishMode.toUpperCase()}
</span> </span>
</div> </div>
<div className="flex flex-col gap-1"> <div className="flex flex-col gap-1">
<span className="font-medium">Target Port</span> <span className="font-medium">Target Port</span>
@@ -85,7 +85,6 @@ export const ShowPorts = ({ applicationId }: Props) => {
{port.protocol.toUpperCase()} {port.protocol.toUpperCase()}
</span> </span>
</div> </div>
</div> </div>
<div className="flex flex-row gap-4"> <div className="flex flex-row gap-4">
<HandlePorts <HandlePorts
+1 -1
View File
@@ -183,7 +183,7 @@ export const mechanizeDockerContainer = async (
RollbackConfig, RollbackConfig,
EndpointSpec: { EndpointSpec: {
Ports: ports.map((port) => ({ Ports: ports.map((port) => ({
PublishMode: port.publishMode, PublishMode: port.publishMode,
Protocol: port.protocol, Protocol: port.protocol,
TargetPort: port.targetPort, TargetPort: port.targetPort,
PublishedPort: port.publishedPort, PublishedPort: port.publishedPort,