Skip to content

Commit

Permalink
fix: no more hard limits for pois
Browse files Browse the repository at this point in the history
- fixes WatWowMap#956
- i'm so nice
  • Loading branch information
Mygod committed Nov 13, 2024
1 parent 4f3f4d2 commit b2efc1e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion server/src/services/DbManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,21 @@ class DbManager extends Logger {
let deDuped = []
let count = 0
let distance = softLimit
const max = model === 'Pokemon' ? hardLimit / 2 : hardLimit
let max = hardLimit
switch (model) {
case 'Pokemon':
max = hardLimit / 2
break
case 'Gym':
case 'Nest':
case 'Pokestop':
case 'Portal':
case 'Route':
max = Infinity
break
default:
break
}
const startTime = Date.now()
while (deDuped.length < searchLimit) {
const loopTime = Date.now()
Expand Down

0 comments on commit b2efc1e

Please sign in to comment.