async function updateEvent(id, event) {
    console.info(`Updating event with specified id: ${id}`);
    return await Event.update(event, {where: {
        id: id
    }}).then((updatedEvent) => {
        return updatedEvent;
    }).catch((err) => {
        if (err) {
            console.warn(err);
            return(err);
        }
    });
}
/*
* This method communicates with the database and will
* update the event with the specified id.
* @author Ruben Fricke
*/
This method communicates with the database and will
update the event with the specified id.
This method communicates with the database and will update the event with the specified id .
async function updateEvent(id, event) {
    console.info(`Updating event with specified id: ${id}`);
    return await Event.update(event, {where: {
        id: id
    }}).then((updatedEvent) => {
        return updatedEvent;
    }).catch((err) => {
        if (err) {
            console.warn(err);
            return(err);
        }
    });
}
async function updateEvent ( id , event ) { console . info ( ` ${ id } ` ) ; return await Event . update ( event , { where : { id : id } } ) . then ( ( updatedEvent ) => { return updatedEvent ; } ) . catch ( ( err ) => { if ( err ) { console . warn ( err ) ; return ( err ) ; } } ) ; }
This method communicates with the database and will
update the event with the specified id.
This method communicates with the database and will update the event with the specified id .