async function returnUserById(id) {
    console.info(`Retrieving user with specified id: ${id}`);
    return await User.findOne({
        include: {all: true, nested: true},
        where: {
            id: id
        }
    }).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 id in the database.
* @author Ruben Fricke
*/
This method communicates with the database and will
retrieve the user with the specified id in the database.
This method communicates with the database and will retrieve the user with the specified id in the database .
async function returnUserById(id) {
    console.info(`Retrieving user with specified id: ${id}`);
    return await User.findOne({
        include: {all: true, nested: true},
        where: {
            id: id
        }
    }).then((user) => {
        return user;
    }).catch((err) => {
        console.log(err);
        return err;
    });
}
async function returnUserById ( id ) { console . info ( ` ${ id } ` ) ; return await User . findOne ( { include : { all : true , nested : true } , where : { id : id } } ) . 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 id in the database.
This method communicates with the database and will retrieve the user with the specified id in the database .