mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-30 14:09:33 +02:00
fix: fix new user when it already exists
This commit is contained in:
1 parent
9cde774273
commit
2a5f22a483
1 file changed
+3
-1
@@ -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