Skip to content

Commit

Permalink
[Fix] Fix removing users from all servers
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavPS committed Mar 6, 2022
1 parent 1fe851a commit fcea312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Main Server/pages/api/servers/users/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default async function handle(req, res) {
resolve();
} else {
getUserId(username).then(userId => {
db.none(`DELETE FROM user_server WHERE user_id = $1`, [userId]);
db.none(`DELETE FROM user_server WHERE user_id = $1 AND server_id = $2`, [userId, serverName]);
res.status(200).json({
success: true
});
Expand Down

0 comments on commit fcea312

Please sign in to comment.