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

Fix role updating for discord users #1739

Merged
merged 1 commit into from Feb 19, 2023
Merged

Fix role updating for discord users #1739

merged 1 commit into from Feb 19, 2023

Conversation

AbdBarho
Copy link
Collaborator

@AbdBarho AbdBarho commented Feb 19, 2023

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.

@LAION-AI LAION-AI deleted a comment from github-actions bot Feb 19, 2023
@AbdBarho AbdBarho marked this pull request as ready for review February 19, 2023 13:41
@andreaskoepf andreaskoepf merged commit b701e4f into main Feb 19, 2023
@andreaskoepf andreaskoepf deleted the role-update branch February 19, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants