Skip to content

Commit 618667d

Browse files
matt-aitkenericallam
authored andcommitted
Revert the action back
1 parent 7a0fd29 commit 618667d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/webapp/app/routes/api.v1.events.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import { generateErrorMessage } from "zod-error";
55
import { authenticateApiRequest } from "~/services/apiAuth.server";
66
import { IngestSendEvent } from "~/services/events/ingestSendEvent.server";
77
import { eventRecordToApiJson } from "~/api.server";
8-
import { standardRateLimitter } from "~/services/apiRateLimit.server";
98

10-
export const action = standardRateLimitter.action("sendEvent", async ({ request }) => {
9+
export async function action({ request }: ActionFunctionArgs) {
1110
// Ensure this is a POST request
1211
if (request.method.toUpperCase() !== "POST") {
1312
return { status: 405, body: "Method Not Allowed" };
@@ -40,4 +39,4 @@ export const action = standardRateLimitter.action("sendEvent", async ({ request
4039
}
4140

4241
return json(eventRecordToApiJson(event));
43-
});
42+
}

0 commit comments

Comments
 (0)