Skip to content

Commit

Permalink
fix: change query and queryBy parameters key in fetchMorePosts handler
Browse files Browse the repository at this point in the history
  • Loading branch information
KaioFelps committed Dec 29, 2024
1 parent 8fbe16f commit f298bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export abstract class BlogHandlers {
let args: Args = {};

const formData = await ctx.request.formData();
const queryBy = ctx.url.searchParams.get("queryBy");
const query = ctx.url.searchParams.get("query");
const queryBy = ctx.url.searchParams.get("qb");
const query = ctx.url.searchParams.get("q");
const _page = formData.get("page")?.toString();

if (!_page || Number.isNaN(_page))
Expand Down

0 comments on commit f298bc2

Please sign in to comment.