Skip to content

Commit

Permalink
fix heartbeat route return type
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktrn committed Dec 20, 2024
1 parent 7d382ac commit a759bf7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/webapp/app/routes/api.v1.worker-actions.heartbeat.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { json, TypedResponse } from "@remix-run/server-runtime";
import {
WorkerApiConnectResponseBody,
WorkerApiHeartbeatRequestBody,
} from "@trigger.dev/worker";
import { WorkerApiHeartbeatResponseBody, WorkerApiHeartbeatRequestBody } from "@trigger.dev/worker";
import { createActionWorkerApiRoute } from "~/services/routeBuilders/apiBuilder.server";

export const action = createActionWorkerApiRoute(
{
body: WorkerApiHeartbeatRequestBody,
},
async ({ authenticatedWorker }): Promise<TypedResponse<WorkerApiConnectResponseBody>> => {
async ({ authenticatedWorker }): Promise<TypedResponse<WorkerApiHeartbeatResponseBody>> => {
await authenticatedWorker.heartbeatWorkerInstance();
return json({ ok: true });
}
Expand Down

0 comments on commit a759bf7

Please sign in to comment.