andre 2 anos atrás
pai
commit
21e1524a5f
1 arquivos alterados com 2 adições e 12 exclusões
  1. 2 12
      core/Helper/UpdateLimit.php

+ 2 - 12
core/Helper/UpdateLimit.php

@@ -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(