|
|
@@ -67,25 +67,15 @@ class UpdateLimit
|
|
|
/**
|
|
|
* Helper to perform BWLimit queries for module
|
|
|
*
|
|
|
- * @param int $serverID
|
|
|
- * @param string $domainName
|
|
|
+ * @param int $serviceID
|
|
|
* @param int $usageUpdateValue
|
|
|
* @return bool
|
|
|
*/
|
|
|
public function updateBWLimit(int $serviceID, int $bwLimitValue) {
|
|
|
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $serverID,
|
|
|
- 'Debug Usage Limits',
|
|
|
- $bwLimitValue
|
|
|
- );
|
|
|
-
|
|
|
try {
|
|
|
$usage = Capsule::table('tblhosting')
|
|
|
- ->where('server', $serverId)
|
|
|
- ->where('domain', $domainName)
|
|
|
+ ->where('id', $serviceID)
|
|
|
->update(['bwlimit' => $bwLimitValue]);
|
|
|
} catch (\Exception $e) {
|
|
|
logModuleCall(
|