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