client/actions/register.js
// Dispatched in the deleteUserAccount() function in Settings.jsx. Seletes the User from both store and database
Dispatched in the deleteUserAccount() function in Settings.jsx. Seletes the User from both store and database
Dispatched in the deleteUserAccount () function in Settings . jsx . Seletes the User from both store and database
function deleteUserAccountById (user_id) {
  return (dispatch) => {
    return request('delete', `auth/${user_id}`) 
      .then (res => {
        dispatch(resetApp())
      })
      .catch(err => {
        dispatch(showError(err.message))
      })
    }
}
function deleteUserAccountById ( user_id ) { return ( dispatch ) => { return request ( 'delete' , ` ${ user_id } ` ) . then ( res => { dispatch ( resetApp ( ) ) } ) . catch ( err => { dispatch ( showError ( err . message ) ) } ) } }
Dispatched in the deleteUserAccount() function in Settings.jsx.
Dispatched in the deleteUserAccount () function in Settings . jsx .
//not sure about this