- While importing something from other files make sure you are using write syntax
{}
ormoduleName
- Inside catch block if it's not sending error as response and the server is crashing then make sure that error.statusCode is not undefined (very hard find out issue).
-
Store ticket details in database : DONE
-
Add cron job to check if ticket is expired or not
-
send reminder email to user before 12 hour of boarding time
-
send a email 1 hour after the arrival time to ask for feedback
-
Add cancel ticket functionality : DONE
-
Send email to user after canceling ticket : DONE
- bookingId
- departureTime
- arrivalTime
- noOfSeats
- ticket-Status
All of these details are already there inside booking model and flight model on Flights DB, then should I duplicate it ? Does it make any sense ?