mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed promises and its race conditions
This commit is contained in:
@ -120,7 +120,7 @@ App.Presenters.UserAccountSettingsPresenter = function(
|
||||
delete formData.passwordConfirmation;
|
||||
}
|
||||
|
||||
api.put('/users/' + user.name, formData)
|
||||
promise.wait(api.put('/users/' + user.name, formData))
|
||||
.then(function(response) {
|
||||
editSuccess(response);
|
||||
}).fail(function(response) {
|
||||
|
Reference in New Issue
Block a user