mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
backend: cleaned console.logs
This commit is contained in:
parent
c92f84c24f
commit
723ab51eef
5 changed files with 0 additions and 9 deletions
|
@ -7,8 +7,6 @@ module.exports = async (req, res) => {
|
|||
const user = await User.findOne({ _id: id, token });
|
||||
const random_url = await generateRandomUrl();
|
||||
|
||||
console.log('USER', { id, token });
|
||||
|
||||
if (user) {
|
||||
return res.send({ success: true, ...user.toObject(), id: user._id, random_url });
|
||||
}
|
||||
|
|
|
@ -65,13 +65,9 @@ module.exports = async (req, res) => {
|
|||
first_name, last_name, name, photo
|
||||
}).save();
|
||||
|
||||
console.log('AUTH', auth.toObject());
|
||||
res.render('social/success', { title: STRINGS.OAUTH.SUCCESS_TITLE, ...user, token: auth.token });
|
||||
} else {
|
||||
const created = await User.create(user, (err, result) => {
|
||||
if (err) console.log('ERRRRRR', err);
|
||||
|
||||
console.log('USER', result);
|
||||
return result.toObject();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue