andre пре 2 година
родитељ
комит
5b9ed8dcbe
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      app/Http/Actions/UsageUpdate.php

+ 8 - 0
app/Http/Actions/UsageUpdate.php

@@ -69,6 +69,14 @@ class UsageUpdate extends AddonController
                 Whmcs\Hosting::where('server', $serverId)->where('domain', $domainName)->update(['bwusage' => $mailboxes]);
                 Whmcs\Hosting::where('server', $serverId)->where('domain', $domainName)->update(['bwusage' => $mailboxes]);
                 Whmcs\Hosting::where('server', $serverId)->where('domain', $domainName)->update(['diskusage' => $storage]);
                 Whmcs\Hosting::where('server', $serverId)->where('domain', $domainName)->update(['diskusage' => $storage]);
 
 
+                logModuleCall(
+                    'kerioEmail',
+                    __FUNCTION__,
+                    $storage,
+                    'Debug Usage',
+                    $mailboxes
+                );
+
                 usleep(5000);
                 usleep(5000);
             }
             }
             catch (\Exception $ex)
             catch (\Exception $ex)