mirror of
https://github.com/wassname/talk.git
synced 2026-07-15 11:26:58 +08:00
Added tests + model implementation.
This commit is contained in:
@@ -14,7 +14,7 @@ const saveBioFailure = error => ({type: actions.SAVE_BIO_FAILURE, error});
|
||||
|
||||
export const saveBio = (user_id, formData) => dispatch => {
|
||||
dispatch(saveBioRequest());
|
||||
coralApi('/account/bio', {method: 'PUT', body: formData})
|
||||
coralApi('/account/settings', {method: 'PUT', body: formData})
|
||||
.then(() => {
|
||||
dispatch(addNotification('success', lang.t('successBioUpdate')));
|
||||
dispatch(saveBioSuccess(formData));
|
||||
|
||||
Reference in New Issue
Block a user