feat: modify query parameter formatting in getNews API to replace spaces with plus signs
This commit is contained in:
parent
4ff1e23d25
commit
fa5f7fbe92
@ -55,7 +55,7 @@ export const getNews = async (parameters?: TParameters) => {
|
||||
...(active && { active }),
|
||||
...(limit && { limit }),
|
||||
...(page && { page }),
|
||||
...(query && { q: query }),
|
||||
...(query && { q: query.split(' ').join('+') }),
|
||||
},
|
||||
})
|
||||
return dataResponseSchema.parse(data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user