After logging in with GitHub OAuth, I changed my GitHub username, but Mix-Space didn't sync it — because the name is already stored in the database after login. To update the name on the site, you need to modify the database.
Here's the process:
- Connect to the server and run
docker exec -it mongo mongosh mx-space - Run
db.readers.find(). You can typeshow collectionsto list all collections. - Run:
db.readers.updateOne(
{ name: 'old name' },
{ $set: { name: 'new name' } }
);
- Done
Fixed a small issue with the blog