Skip to content

Commit

Permalink
Fixed a bug where deleting a user wouldn't delete the linked discord acc
Browse files Browse the repository at this point in the history
  • Loading branch information
AVMG20 committed Jul 13, 2021
1 parent a486307 commit fc2d972
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public static function boot()

$user->vouchers()->detach();

$user->discordUser()->delete();

Pterodactyl::client()->delete("/application/users/{$user->pterodactyl_id}");
});
}
Expand Down

0 comments on commit fc2d972

Please sign in to comment.