mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-08 22:57:48 +02: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,
|
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