mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
fix: fix new user when it already exists
This commit is contained in:
@@ -130,5 +130,7 @@ export async function getUser(req: express.Request) {
|
||||
httpStatus: 401,
|
||||
});
|
||||
}
|
||||
return new User(new UserModel(user));
|
||||
const model = new UserModel(user);
|
||||
model.isNew = false;
|
||||
return new User(model);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user