Skip to content

Commit 13d7adf

Browse files
authored
Merge pull request #553 from WatWowMap/always-hide-old-quests
always hide old quests
2 parents 49327fe + 0313f48 commit 13d7adf

File tree

5 files changed

+8
-15
lines changed

5 files changed

+8
-15
lines changed

server/src/configs/custom-environment-variables.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -917,14 +917,6 @@
917917
"gymBadgeTableName": "DATABASE_SETTINGS_GYM_BADGE_TABLE_NAME",
918918
"sessionTableName": "DATABASE_SETTINGS_SESSION_TABLE_NAME",
919919
"migrationTableName": "DATABASE_SETTINGS_MIGRATION_TABLE_NAME",
920-
"joinGymBadgeTable": {
921-
"__name": "DATABASE_SETTINGS_JOIN_GYM_BADGE_TABLE",
922-
"__format": "boolean"
923-
},
924-
"hideOldQuests": {
925-
"__name": "DATABASE_SETTINGS_HIDE_OLD_QUESTS",
926-
"__format": "boolean"
927-
},
928920
"maxConnections": {
929921
"__name": "DATABASE_SETTINGS_MAX_CONNECTIONS",
930922
"__format": "number"

server/src/configs/default.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,6 @@
449449
"gymBadgeTableName": "gymBadges",
450450
"sessionTableName": "session",
451451
"migrationTableName": "knex_migrations",
452-
"joinGymBadgeTable": false,
453-
"hideOldQuests": false,
454452
"maxConnections": 10
455453
},
456454
"schemas": []

server/src/models/Pokestop.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const {
1111
stopValidDataLimit,
1212
hideOldPokestops,
1313
},
14-
database: { settings },
1514
map,
1615
} = require('../services/config')
1716

@@ -75,7 +74,7 @@ module.exports = class Pokestop extends Model {
7574
ts,
7675
midnight: clientMidnight,
7776
} = args
78-
const midnight = settings.hideOldQuests ? clientMidnight || 0 : 0
77+
const midnight = clientMidnight || 0
7978
const safeTs = ts || Math.floor(new Date().getTime() / 1000)
8079

8180
const {
@@ -1113,7 +1112,7 @@ module.exports = class Pokestop extends Model {
11131112

11141113
static async searchQuests(perms, args, { isMad, hasAltQuests }, distance) {
11151114
const { search, onlyAreas = [], locale, midnight: clientMidnight } = args
1116-
const midnight = settings.hideOldQuests ? clientMidnight : 0
1115+
const midnight = clientMidnight || 0
11171116

11181117
const pokemonIds = Object.keys(Event.masterfile.pokemon).filter((pkmn) =>
11191118
i18next

src/components/markers/pokemon.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const fancyMarker = (
5353
{pkmn.seen_type === 'nearby_cell' && (
5454
<img
5555
src={Icons.getMisc('grass')}
56-
alt='nearby_cell'
56+
alt="nearby_cell"
5757
style={{
5858
width: size / 1.5,
5959
height: 'auto',

src/components/tiles/Pokemon.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ const PokemonTile = ({
126126
zIndexOffset={item.iv * 100}
127127
position={finalLocation}
128128
icon={
129-
pvpCheck || glowStatus || ivCircle || weatherCheck || item.seen_type === 'nearby_cell'
129+
pvpCheck ||
130+
glowStatus ||
131+
ivCircle ||
132+
weatherCheck ||
133+
item.seen_type === 'nearby_cell'
130134
? fancyMarker(
131135
url,
132136
size,

0 commit comments

Comments
 (0)