/json/users: Replace email with user_id in API to reactivate user.

This commit is contained in:
Yashashvi Dave
2018-05-17 23:15:13 +05:30
committed by Tim Abbott
parent 06e7e933cc
commit 4162e61f33
5 changed files with 11 additions and 10 deletions

View File

@@ -324,10 +324,10 @@ exports.set_up = function () {
});
$("#inactive_bots_list").on("click", "button.reactivate_bot", function (e) {
var email = $(e.currentTarget).data('email');
var user_id = $(e.currentTarget).attr('data-user-id');
channel.post({
url: '/json/users/' + encodeURIComponent(email) + "/reactivate",
url: '/json/users/' + encodeURIComponent(user_id) + "/reactivate",
error: function (xhr) {
$('#bot_delete_error').text(JSON.parse(xhr.responseText).msg).show();
},