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