Commit e26c9a0e authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Filter withdrawals by username on admin endpoint

1 merge request!393WIP: (feat): Withdrawal status support
Pipeline #95459645 failed with stages
in 2 minutes and 36 seconds
......@@ -25,8 +25,8 @@ class withdrawals implements Interfaces\Api, Interfaces\ApiAdminPam
$userGuid = null;
if ($_GET['username']) {
$userGuid = (new User(strtolower($_GET['username'])))->guid;
if ($_GET['user']) {
$userGuid = (new User(strtolower($_GET['user'])))->guid;
}
$status = $_GET['status'] ?? null;
......
Please register or to comment