fix type error

This commit is contained in:
2026-01-13 11:36:29 +13:00
parent ef72a95372
commit e28b6a053e

View File

@@ -1,8 +1,9 @@
import { db } from "../../../utils/db" import { db } from "../../../utils/db"
import { entryTable } from "../../../db/schema" import { entryTable } from "../../../db/schema"
import { httpResponse } from "../../../utils/response"; import { httpResponse } from "../../../utils/response";
import type { APIContext } from "astro";
export async function POST({ request }) { export async function POST({ request }: APIContext) {
if (request.headers.get("Content-Type") === "application/json") { if (request.headers.get("Content-Type") === "application/json") {