Create searchGamesWithoutMinimumReview function
This commit is contained in:
parent
2406b50270
commit
2d20201ba2
|
@ -46,6 +46,15 @@ async function searchGamesWithMinimumReview(gamename) {
|
||||||
return games;
|
return games;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function searchGamesWithoutMinimumReview(gamename) {
|
||||||
|
let body = `search "${gamename}"; `;
|
||||||
|
body = await body.concat('fields *; limit 25; where (category = 0 | category = 4) & version_parent = null;');
|
||||||
|
|
||||||
|
const games = await getGameJson(body);
|
||||||
|
|
||||||
|
return games;
|
||||||
|
}
|
||||||
|
|
||||||
async function getGameJson(body) {
|
async function getGameJson(body) {
|
||||||
let res;
|
let res;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue