mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Using parseInt.
This commit is contained in:
parent
ebb9b9d7b6
commit
45ddd0a286
1 changed files with 5 additions and 5 deletions
|
|
@ -14,7 +14,7 @@ export const load: PageServerLoad = () => {
|
|||
}
|
||||
|
||||
export const actions: Actions = {
|
||||
default: async ({ request }): Promise<any> => {
|
||||
default: async ({ request }: RequestEvent): Promise<any> => {
|
||||
console.log("In search action specific")
|
||||
// Do things in here
|
||||
const formData = await request.formData();
|
||||
|
|
@ -27,8 +27,8 @@ export const actions: Actions = {
|
|||
const queryParams: SearchQuery = {
|
||||
order_by: 'rank',
|
||||
ascending: false,
|
||||
limit: +limit,
|
||||
skip: +skip,
|
||||
limit: parseInt(limit),
|
||||
skip: parseInt(skip),
|
||||
client_id: BOARD_GAME_ATLAS_CLIENT_ID,
|
||||
fuzzy_match: true,
|
||||
name: ''
|
||||
|
|
@ -135,8 +135,8 @@ export const actions: Actions = {
|
|||
return {
|
||||
games,
|
||||
totalCount,
|
||||
limit: +limit,
|
||||
skip: +skip,
|
||||
limit: parseInt(limit),
|
||||
skip: parseInt(skip),
|
||||
};
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue