Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
4451c192d2
|
|||
|
b33bf757e2
|
|||
|
10c1e741a9
|
+1
-1
@@ -1 +1 @@
|
|||||||
v24.15.0
|
v24.18.0
|
||||||
@@ -40,7 +40,7 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
textEncode(`${timestamp.replace("t=", "")}.${body}`),
|
textEncode(`${timestamp.replace("t=", "")}.${body}`),
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
return jsonError("Invalid signature", 403);
|
return jsonError("Invalid signature", 401);
|
||||||
|
|
||||||
const data = JSON.parse(body);
|
const data = JSON.parse(body);
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
return jsonError("Invalid event type", 400);
|
return jsonError("Invalid event type", 400);
|
||||||
|
|
||||||
const { prisma } = context.data;
|
const { prisma } = context.data;
|
||||||
const userId = data.EventPrisma.UserId;
|
const userId = data.EventPayload.UserId;
|
||||||
|
|
||||||
if (typeof userId !== "number") return jsonError("Invalid user id", 400);
|
if (typeof userId !== "number") return jsonError("Invalid user id", 400);
|
||||||
|
|
||||||
|
|||||||
Generated
+469
-883
File diff suppressed because it is too large
Load Diff
+15
-15
@@ -10,37 +10,37 @@
|
|||||||
"publish": "remix build --sourcemap && wrangler pages deploy --upload-source-maps public"
|
"publish": "remix build --sourcemap && wrangler pages deploy --upload-source-maps public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^2.10.9",
|
"@chakra-ui/react": "^2.10.10",
|
||||||
"@emotion/react": "^11.14.0",
|
"@emotion/react": "^11.14.0",
|
||||||
"@emotion/styled": "^11.14.1",
|
"@emotion/styled": "^11.14.1",
|
||||||
"@fontsource-variable/plus-jakarta-sans": "^5.2.8",
|
"@fontsource-variable/plus-jakarta-sans": "^5.2.8",
|
||||||
"@prisma/adapter-d1": "^7.8.0",
|
"@prisma/adapter-d1": "^7.8.0",
|
||||||
"@prisma/client": "^7.8.0",
|
"@prisma/client": "^7.8.0",
|
||||||
"@remix-run/cloudflare": "^2.17.4",
|
"@remix-run/cloudflare": "^2.17.5",
|
||||||
"@remix-run/cloudflare-pages": "^2.17.4",
|
"@remix-run/cloudflare-pages": "^2.17.5",
|
||||||
"@remix-run/react": "^2.17.4",
|
"@remix-run/react": "^2.17.5",
|
||||||
"@sentry/cloudflare": "^10.52.0",
|
"@sentry/cloudflare": "^10.63.0",
|
||||||
"@sentry/remix": "^10.52.0",
|
"@sentry/remix": "^10.63.0",
|
||||||
"aws4fetch": "^1.0.20",
|
"aws4fetch": "^1.0.20",
|
||||||
"dayjs": "^1.11.20",
|
"dayjs": "^1.11.21",
|
||||||
"framer-motion": "^12.38.0",
|
"framer-motion": "^12.42.2",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-big-calendar": "^1.19.4",
|
"react-big-calendar": "^1.20.0",
|
||||||
"react-dom": "^18.3.1"
|
"react-dom": "^18.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@remix-run/dev": "^2.17.4",
|
"@remix-run/dev": "^2.17.5",
|
||||||
"@types/node": "^24.12.3",
|
"@types/node": "^24.13.2",
|
||||||
"@types/react": "^18.3.28",
|
"@types/react": "^18.3.31",
|
||||||
"@types/react-big-calendar": "^1.16.3",
|
"@types/react-big-calendar": "^1.16.3",
|
||||||
"@types/react-dom": "^18.3.7",
|
"@types/react-dom": "^18.3.7",
|
||||||
"dotenv": "^17.4.1",
|
"dotenv": "^17.4.2",
|
||||||
"prettier": "^3.8.3",
|
"prettier": "^3.9.4",
|
||||||
"prisma": "^7.8.0",
|
"prisma": "^7.8.0",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"@cloudflare/workers-types": "^4.20260511.1"
|
"@cloudflare/workers-types": "^4.20260702.1"
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"endOfLine": "auto"
|
"endOfLine": "auto"
|
||||||
|
|||||||
Reference in New Issue
Block a user