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:
@ -54,7 +54,7 @@ App.Presenters.UserAccountRemovalPresenter = function(
|
||||
messagePresenter.showError($messages, 'Must confirm to proceed.');
|
||||
return;
|
||||
}
|
||||
api.delete('/users/' + user.name)
|
||||
promise.wait(api.delete('/users/' + user.name))
|
||||
.then(function() {
|
||||
auth.logout();
|
||||
var $messageDiv = messagePresenter.showInfo($messages, 'Account deleted. <a href="">Back to main page</a>');
|
||||
|
Reference in New Issue
Block a user