« first day (3300 days earlier)      last day (817 days later) » 

07:16
Please tell me what wrong with my code :

const User = require("../models/users");

const createSingleUser = async (req, res) => {
  // we need to make sure the provided email is not being used if it exists in the db
  // them we through an error if not then we create the user
  // step one lets search by the email provided
  const checkEmail = req.body.email;
  const found = await User.findOne({
    where: {
      email: checkEmail,
    },
  });
  // if found is not empty meaning a match was found
1 message moved from JavaScript
 
3 hours later…
 
2 hours later…
13:05
im using this javascript to disable button after once clicking on it

<script>
function disableButton() {
var btnSubmit_6 = document.getElementById('btnSubmit_6');
btnSubmit_6.disabled = true
}
</script>
1 message moved from JavaScript
 
3 hours later…
 
1 hour later…
 
1 hour later…
 
2 hours later…

« first day (3300 days earlier)      last day (817 days later) »