Skip to content

Commit d45696c

Browse files
authored
fix(api): 204 response issue in deployment start endpoint (#2534)
1 parent 8313800 commit d45696c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/webapp/app/routes/api.v1.deployments.$deploymentId.start.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ export async function action({ request, params }: ActionFunctionArgs) {
5151
})
5252
.match(
5353
() => {
54-
return json(null, { status: 204 });
54+
return new Response(null, { status: 204 });
5555
},
5656
(error) => {
5757
switch (error.type) {
5858
case "failed_to_extend_deployment_timeout":
59-
return json(null, { status: 204 }); // ignore these errors for now
59+
return new Response(null, { status: 204 }); // ignore these errors for now
6060
case "deployment_not_found":
6161
return json({ error: "Deployment not found" }, { status: 404 });
6262
case "deployment_not_pending":

0 commit comments

Comments
 (0)