console.log(entry) gives ({
_id: new ObjectId(‘669c834c6e93a548837c6572’),
shortId: ‘NpreYDMaH’,
redirectURL: ‘amazon.in’,
visitHistory: [],
createdAt: 2024-07-21T03:41:00.236Z,
updatedAt: 2024-07-21T03:41:00.236Z,
__v: 0
}
null) however when i use res.redirect(entry.redirectURL) it says can’t read properties of null(reading redirectURL) , why it happens when there is redirectURL in entry
I was expecting it to redirect me to the short id URL
Eren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.