Patched a potential crash

This commit is contained in:
2022-01-15 02:28:55 +00:00
parent 7af87824e3
commit a112e17f59
+1 -1
View File
@@ -5,7 +5,7 @@ const route = async (req, res) => {
//verify the recovery record exists //verify the recovery record exists
const record = await recovery.findOne({ const record = await recovery.findOne({
where: { where: {
token: req.query.token token: req.query.token || ''
} }
}); });