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

Deleting an user will only delete its first 20 servers #95

Open
asere opened this issue Dec 29, 2021 · 0 comments
Open

Deleting an user will only delete its first 20 servers #95

asere opened this issue Dec 29, 2021 · 0 comments

Comments

@asere
Copy link
Collaborator

asere commented Dec 29, 2021

If an user have more than 20 servers, it could be an issue if we try to delete this user.
Here is the part of the code affected by deletion of an user

user.findAnUser(authors).then(function (results : any) {
const author : any = results[0];
console.log('author = ' + author);
user.findAllServersOfAnUser(req.query, author, req.payload).then(function (results : any) {
var servers = results[0];
if (servers.length == 0) {
author.remove();
return res.sendStatus(api_code.ok);
}

@asere asere changed the title Deleting an user will only delete it first 20 servers Deleting an user will only delete its first 20 servers Dec 31, 2021
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

1 participant