mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add isGuest field in user model
This commit is contained in:
1 parent
7347c37a9e
commit
198dcae3f8
2 files changed
+7
No files matched your search
@@ -37,6 +37,7 @@ export async function createGuestUser() {
|
||||
const user = new User({
|
||||
username,
|
||||
email: `${username}@example.com`,
|
||||
isGuest: true,
|
||||
})
|
||||
await user.save()
|
||||
|
||||
|
||||
Reference in new issue
Block a user