change variable user to name to check pppoe online customer

This commit is contained in:
Ibnu Maksum 2024-10-08 09:50:23 +07:00
parent 05eab22062
commit 5b51af1b6e
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -297,7 +297,7 @@ class MikrotikPppoe
$client = $this->getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
$printRequest = new RouterOS\Request(
'/ppp active print',
RouterOS\Query::where('user', $customer['username'])
RouterOS\Query::where('name', $customer['username'])
);
return $client->sendSync($printRequest)->getProperty('.id');
}