This repository was archived by the owner on Mar 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ class Incident extends Model {
5151 longitude : pokestop . lon ,
5252 pokestop_name : pokestop . name || oldPokestop && oldPokestop . name || "Unknown" ,
5353 url : pokestop . url || oldPokestop && oldPokestop . url ,
54- lure_expiration : pokestop . lureExpireTimestamp || 0 ,
5554 last_modified : pokestop . lastModifiedTimestamp || 0 ,
5655 enabled : pokestop . enabled || true ,
5756 lure_id : pokestop . lureId || 0 ,
Original file line number Diff line number Diff line change @@ -309,13 +309,13 @@ class Pokestop extends Model {
309309 if ( this . lureExpireTimestamp !== 0 ) {
310310 if ( oldPokestop . lureId === this . lureId && ( oldPokestop . lureExpireTimestamp === null ||
311311 oldPokestop . lureExpireTimestamp >= this . updated ) ) {
312- this . lureFirstSeenTimestamp = oldPokestop . firstSeenTimestamp ;
312+ this . lureFirstSeenTimestamp = oldPokestop . lureFirstSeenTimestamp ;
313313 this . lureExpireTimestamp = oldPokestop . lureExpireTimestamp ;
314314 } else {
315315 WebhookController . instance . addLureEvent ( this . toJson ( 'lure' , oldPokestop ) ) ;
316316 }
317317 }
318- } else {
318+ } else if ( this . lureExpireTimestamp !== 0 ) {
319319 this . lureExpireTimestamp = this . estimateLureExpireLegacy (
320320 oldPokestop . lureExpireTimestamp > 0 && this . lureId === oldPokestop . lureId
321321 ? oldPokestop . lureExpireTimestamp - Pokestop . LureTime : this . lastModifiedTimestamp ) ;
You can’t perform that action at this time.
0 commit comments