Explorar o código

fix: 🚑️ ChargeServer Command

IceToast %!s(int64=3) %!d(string=hai) anos
pai
achega
570b0b014f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Console/Commands/ChargeServers.php

+ 1 - 1
app/Console/Commands/ChargeServers.php

@@ -65,7 +65,7 @@ class ChargeServers extends Command
                         $newBillingDate = Carbon::parse($server->last_billed)->addMonth();
                         break;
                     case 'weekly':
-                        $newBillingDate = Carbon::parse($server->last_billed)->addYear();
+                        $newBillingDate = Carbon::parse($server->last_billed)->addWeek();
                         break;
                     case 'daily':
                         $newBillingDate = Carbon::parse($server->last_billed)->addDay();