Skip to content

Commit

Permalink
fix netlify function
Browse files Browse the repository at this point in the history
  • Loading branch information
donywang922 committed Nov 17, 2023
1 parent 33f772e commit 4ec6290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netlify/functions/search.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {Context} from "@netlify/functions"
export default async function search(req: Request, ctx: Context) {
let P_KEY = process.env.PERENUAL_KEY

let form = await req.formData()
let form = await req.json()
let q = form.get("q")
let page = form.get("page")
let order = form.get("order")
Expand Down

0 comments on commit 4ec6290

Please sign in to comment.