From 7854a3a2f07d1dddb7218c0dbdcc3783f3b85adc Mon Sep 17 00:00:00 2001 From: kj1352 Date: Wed, 13 Oct 2021 18:46:24 +0530 Subject: [PATCH] removed unwanted console logs --- src/authentication/routes.ts | 10 +++------- src/index.ts | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/authentication/routes.ts b/src/authentication/routes.ts index 4ca6d54..9a2188d 100644 --- a/src/authentication/routes.ts +++ b/src/authentication/routes.ts @@ -7,7 +7,6 @@ import sendGridMail, { MailDataRequired } from '@sendgrid/mail'; const authRoutes = express.Router(); authRoutes.get('/users/', async (request, response) => { - console.log(request); response.send("List of users will be displayed"); }); @@ -38,8 +37,7 @@ authRoutes.post('/register-applicant/', async (request, response) => { return; } - } catch(e) { - console.log(e); + } catch { return; } @@ -59,8 +57,8 @@ authRoutes.post('/register-applicant/', async (request, response) => { }); response.send("Registeration Complete, Please verify your profile to proceed further"); - } catch (e) { - console.log(e); + } catch { + return; } return; @@ -112,11 +110,9 @@ authRoutes.post('/request-verification/', async (request, response) => { }); sendGridMail.send(otpMail).then(data=> { - console.log(data); response.send('Verification OTP sent'); return; }, (err) => { - console.log(err); response.sendStatus(500); response.send("SMTP system failure"); return; diff --git a/src/index.ts b/src/index.ts index 1fa40f4..9d88f30 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,5 +25,4 @@ app.get('/', (request, response) => { const server = app.listen(app.get('port'), () => { connectToDatabaseServer(); sendGridMail.setApiKey(SENDGRID_API_KEY); - console.log('App is running on http://localhost:%d', app.get('port')); }); \ No newline at end of file