overmindbots / core

Core monorepo with our apps and packages
1 stars 0 forks source link

fix: fix faulty implementation of assignment logic #55

Closed monitz87 closed 6 years ago

monitz87 commented 6 years ago

affects: @overmindbots/service-referral-ranks-invites

Added a CHUNK_SIZE env variable to regulate how many guilds are fetched at the same time on startup Fixed the noNewUsesCount not being reset when a guild's loop was idle and a new member joined Fixed an error produced when trying to assign a referral from an invite with no inviter. These invites are now ignored When members joined a guild without the proper permissions, its member queue would keep growing indefinitely. This introduced a potential memory issue. Now the queue is cleared each time a fetch returns a permission error