Skip to content

Commit

Permalink
fix: available for other permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 10, 2024
1 parent 5a0cdf5 commit 425ab3a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions server/src/graphql/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ const resolvers = {
available: (_, _args, { Event, Db, perms }) => {
const data = {
pokemon: perms.pokemon ? Event.available.pokemon : [],
gyms: perms.gyms ? Event.available.gyms : [],
gyms: perms.gyms || perms.raids ? Event.available.gyms : [],
nests: perms.nests ? Event.available.nests : [],
pokestops: perms.pokestops ? Event.available.pokestops : [],
pokestops:
perms.pokestops ||
perms.invasions ||
perms.eventStops ||
perms.quests ||
perms.lures
? Event.available.pokestops
: [],
questConditions: perms.quests ? Db.questConditions : {},
masterfile: { ...Event.masterfile, invasions: Event.invasions },
filters: buildDefaultFilters(perms, Db),
Expand Down

0 comments on commit 425ab3a

Please sign in to comment.