Skip to content

Instantly share code, notes, and snippets.

View meldsza's full-sized avatar

Melroy Dsouza meldsza

View GitHub Profile
@meldsza
meldsza / report
Last active August 16, 2020 17:48 — forked from rahulCSENITTE/report
report -- digilab
router.post('/upreport/:ReId', multer.single('reportfile'), async function (req, res, next) {
try{
if (!req.file) {
req.flash('error', "Report file not selected")
res.redirect('/hospital/report')
} else {
let doc = await db.collection("request").doc(req.params.ReId)
let mailOptions = {
from: '4nm17cs141@gmail.com',
to: doc.data().email,