Removed excess logging

This commit is contained in:
2021-12-19 16:06:23 +00:00
parent 062bc43f5a
commit ec3b14e32b
2 changed files with 1 additions and 8 deletions
-3
View File
@@ -52,9 +52,6 @@ const validateDetails = async (body) => {
return 'Invalid username'; return 'Invalid username';
} }
//check for existing (banned)
//TODO: re-add banned email checks
//check for existing email //check for existing email
const emailRecord = await accounts.findOne({ const emailRecord = await accounts.findOne({
where: { where: {
+1 -5
View File
@@ -30,7 +30,7 @@ const route = async (req, res) => {
//delete the pending signup //delete the pending signup
pendingSignups.destroy({ pendingSignups.destroy({
where: { where: {
username: req.query.username || '' username: info.username || ''
} }
}); });
@@ -43,13 +43,9 @@ const route = async (req, res) => {
if (!probe.ok) { if (!probe.ok) {
console.error('Could not probe the post validation hook'); console.error('Could not probe the post validation hook');
} else {
console.log('Validation hook probe successful'); //TODO: remove this
} }
//discard the result //discard the result
} else {
console.log('No validation hook'); //TODO: remove this
} }
}; };