Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix role updating for discord users (#1739)
The pattern is really confusing: the `username` saved in the python backend for discord users is their discord id, but what we have in the frontend users db is randomly generated. And so we cannot refer to users from the backend using their id immediately, we have to do another query to another table, which is not good! We might need some migration scripts in the future if we want to simplify this.
- Loading branch information
Showing
3 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters