for bugs
This commit is contained in:
parent
87af5c7be8
commit
f4ac5978a8
|
@ -108,6 +108,9 @@ module.exports.postRazorpay = async (req , res , next) => {
|
|||
const courseId = req.body.courseId ;
|
||||
const couponCode = req.body.couponCode ;
|
||||
const userId = req.user._id ;
|
||||
|
||||
console.log(courseId , couponCode , userId) ;
|
||||
|
||||
let user = await User.findById(userId) ;
|
||||
let student =await Student.findById(user.student) ;
|
||||
let course =await CourseType.findById(courseId) ;
|
||||
|
|
Loading…
Reference in New Issue