cmp.js
diff --git a/pages/api/rsmv/validate.js b/pages/api/rsmv/validate.js
index c71f3c4..0133405 100644
--- a/pages/api/rsmv/validate.js
+++ b/pages/api/rsmv/validate.js
@@ -9,10 +9,10 @@
return new Promise((resolve, reject) => {
MongoClient.connect(url, async function(err, client) {
let db_response = await client.db(db).collection(collection).findOne({code: req.body.code});
-
+
if (!db_response) return resolve(res.status(404).end());
if (db_response.timestamp + (1800) >= Date.now()) return resolve(res.status(410));
-
+
let props = {
user: db_response.user,
role: db_response.role,