Skip to content

Commit

Permalink
Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Feb 2, 2024
1 parent 42552ae commit dbd4a68
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions api/vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
const urlBuffer = validatedMessage?.data?.frameActionBody?.url || [];
const urlString = Buffer.from(urlBuffer).toString("utf-8");
if (!urlString.startsWith(HOST_URL)) {
console.warn(`Invalid frame url: ${urlBuffer} vs ${HOST_URL}`);
return res.status(400).end(`Invalid frame url: ${urlBuffer}`);
}
} catch (err) {
Expand All @@ -79,7 +78,6 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {

const poll: Poll | null = await kv.hgetall(`poll:${pollId}`);
if (!poll) {
console.warn(`Missing poll for #${pollId}`);
return res.status(400).send(`Missing poll for #${pollId}`);
}

Expand Down

0 comments on commit dbd4a68

Please sign in to comment.