Const Express Require ('Express')
Const Express Require ('Express')
Const Express Require ('Express')
//middleware
app.use(cors());
app.use(express.json());
// find a product
// app.get('/alluser/:id', async (req, res) => {
// const id = req.params.id;
// const query = { _id: new ObjectId(id) }
// // console.log(query);
// const result = await usersCollection.findOne(query);
// res.send(result);
// })
bscGrade: updateUserInfo.bscGrade,
bscSubject: updateUserInfo.bscSubject,
bscYear: updateUserInfo.bscYear,
hscGrade: updateUserInfo.hscGrade,
hscRoll: updateUserInfo.hscRoll,
hscYear: updateUserInfo.hscYear,
jscGrade: updateUserInfo.jscGrade,
jscRoll: updateUserInfo.jscRoll,
jscYear: updateUserInfo.jscYear,
pscGrade: updateUserInfo.pscGrade,
pscRoll: updateUserInfo.pscRoll,
pscYear: updateUserInfo.pscYear,
sscGrade: updateUserInfo.sscGrade,
sscRoll: updateUserInfo.sscRoll,
sscYear: updateUserInfo.sscYear,
nidUrl: updateUserInfo.nidUrl,
passportUrl: updateUserInfo.passportUrl,
certificatUrl: updateUserInfo.certificatUrl,
ieltsUrl: updateUserInfo.ieltsUrl,
userStatus: updateUserInfo.userStatus
}
}
})
//
-----------------------------------------------------------------------------------
----
app.listen(port, () => {
console.log(`Visa system is running on port ${port}`);
})