Bug: Servicehosting API returning wrong order data (#2885)

Update database query to filter by service type
This commit is contained in:
Yağızhan authored and GitHub committed 2025-09-05 00:17:06 -07:00
1 parent 996ff15a3e
commit 7e2cf65edd
1 file changed
+1 -1
+1 -1
View File
@@ -178,7 +178,7 @@ class Admin extends \Api_Abstract
$bean->import($account);
$model = $bean->box();
$order = $this->di['db']->findOne('ClientOrder', 'service_id = :service_id', [':service_id' => $model->id]);
$order = $this->di['db']->findOne('ClientOrder', 'service_type = "hosting" AND service_id = :service_id', [':service_id' => $model->id]);
$result['list'][$key] = $this->getService()->toHostingAccountApiArray($model, true, $this->getIdentity());