async function returnUserByEmail(email) {
    console.info(`Retrieving user with specified email: ${email}`);
    return await User.findOne({
        where: {
            email: email
        }
    }).then((user) => {
        return user;
    }).catch((err) => {
        console.log(err);
        return err;
    });
}
/*
* This method communicates with the database and will
* retrieve the user with the specified email in the database.
* @author Ruben Fricke
*/
This method communicates with the database and will
retrieve the user with the specified email in the database.
This method communicates with the database and will retrieve the user with the specified email in the database .
async function returnUserByEmail(email) {
    console.info(`Retrieving user with specified email: ${email}`);
    return await User.findOne({
        where: {
            email: email
        }
    }).then((user) => {
        return user;
    }).catch((err) => {
        console.log(err);
        return err;
    });
}
async function returnUserByEmail ( email ) { console . info ( ` ${ email } ` ) ; return await User . findOne ( { where : { email : email } } ) . then ( ( user ) => { return user ; } ) . catch ( ( err ) => { console . log ( err ) ; return err ; } ) ; }
This method communicates with the database and will
retrieve the user with the specified email in the database.
This method communicates with the database and will retrieve the user with the specified email in the database .