Skip to content

Commit ba417db

Browse files
committed
fix more bugs
1 parent 5ca3f3c commit ba417db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resolvers/itemResolver.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
},*/
4444
}
4545
//if (Object.keys(args).length === 0) return context.data.item.getAllItems();
46-
const nonFilterArgs = ['lang', 'limit', 'offset'];
46+
const nonFilterArgs = ['lang', 'gameMode', 'limit', 'offset'];
4747
for (const argName in args) {
4848
if (nonFilterArgs.includes(argName)) continue;
4949
if (!filters[argName]) return Promise.reject(new Error(`${argName} is not a recognized argument`));

resolvers/mapResolver.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
return context.data.map.getBossesByNames(context, info, names, bosses);
88
},
99
}
10-
const nonFilterArgs = ['lang', 'limit', 'offset'];
10+
const nonFilterArgs = ['lang', 'gameMode', 'limit', 'offset'];
1111
for (const argName in args) {
1212
if (nonFilterArgs.includes(argName)) continue;
1313
if (!filters[argName]) return Promise.reject(new Error(`${argName} is not a recognized argument`));
@@ -32,7 +32,7 @@ export default {
3232
return context.data.map.getMapsByEnemies(context, info, enemies, maps);
3333
},
3434
}
35-
const nonFilterArgs = ['lang', 'limit', 'offset'];
35+
const nonFilterArgs = ['lang', 'gameMode', 'limit', 'offset'];
3636
for (const argName in args) {
3737
if (nonFilterArgs.includes(argName)) continue;
3838
if (!filters[argName]) return Promise.reject(new Error(`${argName} is not a recognized argument`));

0 commit comments

Comments
 (0)