Skip to content

Commit

Permalink
fix more bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Jun 21, 2024
1 parent 5ca3f3c commit ba417db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resolvers/itemResolver.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
},*/
}
//if (Object.keys(args).length === 0) return context.data.item.getAllItems();
const nonFilterArgs = ['lang', 'limit', 'offset'];
const nonFilterArgs = ['lang', 'gameMode', 'limit', 'offset'];
for (const argName in args) {
if (nonFilterArgs.includes(argName)) continue;
if (!filters[argName]) return Promise.reject(new Error(`${argName} is not a recognized argument`));
Expand Down
4 changes: 2 additions & 2 deletions resolvers/mapResolver.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
return context.data.map.getBossesByNames(context, info, names, bosses);
},
}
const nonFilterArgs = ['lang', 'limit', 'offset'];
const nonFilterArgs = ['lang', 'gameMode', 'limit', 'offset'];
for (const argName in args) {
if (nonFilterArgs.includes(argName)) continue;
if (!filters[argName]) return Promise.reject(new Error(`${argName} is not a recognized argument`));
Expand All @@ -32,7 +32,7 @@ export default {
return context.data.map.getMapsByEnemies(context, info, enemies, maps);
},
}
const nonFilterArgs = ['lang', 'limit', 'offset'];
const nonFilterArgs = ['lang', 'gameMode', 'limit', 'offset'];
for (const argName in args) {
if (nonFilterArgs.includes(argName)) continue;
if (!filters[argName]) return Promise.reject(new Error(`${argName} is not a recognized argument`));
Expand Down

0 comments on commit ba417db

Please sign in to comment.