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: Self hosted checking for more than one payment for department. #106

Open
Shuttleu opened this issue Aug 26, 2023 · 2 comments
Open

Comments

@Shuttleu
Copy link
Contributor

https://github.com/Resgrid/Core/blob/6f0f7f0f098bc51c0b8bc2a2c3c8d3376bcd5336/Repositories/Resgrid.Repositories.DataRepository/IdentityRepository.cs#L169C18-L169C18
https://github.com/Resgrid/Core/blob/6f0f7f0f098bc51c0b8bc2a2c3c8d3376bcd5336/Repositories/Resgrid.Repositories.DataRepository/IdentityRepository.cs#L195C18-L169C18

When getting the list of users while on self hosted via Docker, we can add as many users as we wish, however only 10 will show up on the web front end.
Looking into this I have narrowed it down to a SQL statement checking if we have made more than one payment.

The system creates a payment when the department is created, however as the SQL query is checking for more than one payment, it falls back to the default of 10.

Creating a second payment in the database allows the system to check the plan and allow the fill number of users.

I have linked the two lines which should be >= instead of >

@welcome
Copy link

welcome bot commented Aug 26, 2023

Thanks for opening this issue. A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@ucswift
Copy link
Member

ucswift commented Aug 26, 2023

@Shuttleu thanks for reporting this, I'm working on a fix now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants