Skip to content

Commit

Permalink
use del req
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Oct 21, 2024
1 parent 01768f9 commit c761f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Do.php
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ public static function DeleteUserAccount()
throw new Exception("That user doesn't exist");
}
$requestUrl = $INTERNAL_USERS_SERVICE_BASE_URL . "/api/v1/users/" . $userId;
$resp = makeJsonWebRequest("POST", $requestUrl);
$resp = makeJsonWebRequest("DELETE", $requestUrl);
if ($resp["status"] !== 204) {
postWebhookMessage("failed to send FokaBot message :( Error: " . print_r($resp["message"], true));
rapLog("failed to send FokaBot message :( Error: " . print_r($resp["message"], true));
Expand Down

0 comments on commit c761f2a

Please sign in to comment.