You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 Fixed and no bugs anymore 🆙
This commit is contained in:
@@ -58,7 +58,7 @@ class EditUser extends EditRecord
|
||||
$this->halt();
|
||||
}
|
||||
|
||||
$rcon = resolve(RconService::class);
|
||||
$rcon = app(RconService::class);
|
||||
|
||||
if (! $user->online) {
|
||||
DB::transaction(function () use ($user, $data): void {
|
||||
@@ -152,7 +152,7 @@ class EditUser extends EditRecord
|
||||
return;
|
||||
}
|
||||
|
||||
resolve(SendCurrency::class)->execute($user, $currencyType, -$currency->amount + $updatedCurrencyAmount);
|
||||
app(SendCurrency::class)->execute($user, $currencyType, -$currency->amount + $updatedCurrencyAmount);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -83,7 +83,7 @@ class BadgesRelationManager extends RelationManager
|
||||
->persistent()
|
||||
->send();
|
||||
} else {
|
||||
$rcon = resolve(RconService::class);
|
||||
$rcon = app(RconService::class);
|
||||
$data = $action->getFormData();
|
||||
|
||||
$rcon->sendSafelyFromDashboard('sendBadge', [$user, $data['badge_code']], 'RCON: Failed to send the badge');
|
||||
@@ -119,7 +119,7 @@ class BadgesRelationManager extends RelationManager
|
||||
->persistent()
|
||||
->send();
|
||||
} else {
|
||||
$rcon = resolve(RconService::class);
|
||||
$rcon = app(RconService::class);
|
||||
$badge = $action instanceof DeleteAction
|
||||
? $action->getRecord()?->badge_code
|
||||
: $action->getRecords()->map(fn ($record) => $record->badge_code)->join(';');
|
||||
|
||||
Reference in New Issue
Block a user