jbujalance / biwenger-transfers

A Biwenger transfer recorder that stores the market movements in a MongoDB database
0 stars 0 forks source link

When a round is adjusted by Biwenger, the scanner re-integrates the whole round, creating duplicated round standings #6

Open jbujalance opened 5 years ago

jbujalance commented 5 years ago

This should not happen very often, but when Biwenger adjusts the points of some players for a past round, it generates a roundFinished event with the new bonus and points. This event is interpreted by BiwengerCompanion as a new round and integrates it as such a new round.

When scanning the round standings, we should check the roundId of the round that is being ingested, and if it already exists in the database, replace it by the new adjusted round.