Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] The pools of the delegate are being inserted duplicated #111

Closed
Agupane opened this issue Jul 26, 2019 · 0 comments · Fixed by #128
Closed

[Bug] The pools of the delegate are being inserted duplicated #111

Agupane opened this issue Jul 26, 2019 · 0 comments · Fixed by #128
Assignees
Labels
backend bug Something isn't working

Comments

@Agupane
Copy link
Contributor

Agupane commented Jul 26, 2019

Everytime the jobs runs on the same round and the pools are updated (this not happens unless the developer forces to run), the pools are not updated, but pushed new ones instead. The updateDelegatePools function should be modify to check this before inserting new one (maybe the method findOneAndUpdate could help)

Note: doing the check as db-level is not available in mongo. Check this: https://stackoverflow.com/questions/6743849/mongodb-unique-index-on-array-elements-property

@Agupane Agupane added backend bug Something isn't working labels Jul 26, 2019
@Agupane Agupane changed the title [Bug] The pools of the delegate are getting dupplicated [Bug] The pools of the delegate are being inserted duplicated Jul 26, 2019
@Agupane Agupane self-assigned this Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant