Correct response code + user id property
Test, Build, Deploy / Test, Build, and Deploy (push) Successful in 1m32s
Test, Build, Deploy / Create Sentry Release (push) Successful in 8s

This commit is contained in:
2026-07-02 00:38:37 -04:00
parent b33bf757e2
commit 4451c192d2
+2 -2
View File
@@ -40,7 +40,7 @@ export async function onRequestPost(context: RequestContext) {
textEncode(`${timestamp.replace("t=", "")}.${body}`),
))
)
return jsonError("Invalid signature", 403);
return jsonError("Invalid signature", 401);
const data = JSON.parse(body);
@@ -53,7 +53,7 @@ export async function onRequestPost(context: RequestContext) {
return jsonError("Invalid event type", 400);
const { prisma } = context.data;
const userId = data.EventPrisma.UserId;
const userId = data.EventPayload.UserId;
if (typeof userId !== "number") return jsonError("Invalid user id", 400);