mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
build(deps): bump hono from 4.11.7 to 4.12.22
Fix TypeScript errors from stricter c.req.param() types (string | undefined).
This commit is contained in:
@@ -4,7 +4,7 @@ import { Env, FeedMetadata, EmailData } from "../types";
|
||||
|
||||
export async function handle(c: Context<{ Bindings: Env }>): Promise<Response> {
|
||||
const feedId = c.req.param("feedId");
|
||||
const receivedAt = parseInt(c.req.param("entryId"), 10);
|
||||
const receivedAt = parseInt(c.req.param("entryId") ?? "", 10);
|
||||
|
||||
if (!feedId || isNaN(receivedAt)) {
|
||||
return new Response("Not Found", { status: 404 });
|
||||
|
||||
Reference in New Issue
Block a user