Skip to content

Commit 5f9fe4a

Browse files
committed
Update calls to missing function
1 parent 60eb600 commit 5f9fe4a

File tree

45 files changed

+78
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+78
-78
lines changed

app/Console/Commands/User/DisableTwoFactorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function handle()
5656
$email = $this->option('email') ?? $this->ask(trans('command/messages.user.ask_email'));
5757
$user = $this->repository->setColumns(['id', 'email'])->findFirstWhere([['email', '=', $email]]);
5858

59-
$this->repository->withoutFresh()->update($user->id, [
59+
$this->repository->withoutFreshModel()->update($user->id, [
6060
'use_totp' => false,
6161
'totp_secret' => null,
6262
]);

app/Jobs/Schedule/RunTaskJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private function queueNextTask($sequence)
161161
private function markScheduleComplete()
162162
{
163163
$repository = app()->make(ScheduleRepositoryInterface::class);
164-
$repository->withoutFresh()->update($this->schedule, [
164+
$repository->withoutFreshModel()->update($this->schedule, [
165165
'is_processing' => false,
166166
'last_run_at' => Carbon::now()->toDateTimeString(),
167167
]);

app/Repositories/Eloquent/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function filterUserAccessServers(User $user, int $level): LengthAwarePagi
236236
$instance->whereNotIn('id', $this->getUserAccessServers($user->id));
237237
}
238238

239-
return $instance->setSearchTerm($this->getSearchTerm())->paginate(25);
239+
return $instance->search($this->getSearchTerm())->paginate(25);
240240
}
241241

242242
/**

app/Services/Allocations/SetDefaultAllocationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function handle($server, int $allocation): Allocation
8383
}
8484

8585
$this->connection->beginTransaction();
86-
$this->serverRepository->withoutFresh()->update($server->id, ['allocation_id' => $model->id]);
86+
$this->serverRepository->withoutFreshModel()->update($server->id, ['allocation_id' => $model->id]);
8787

8888
// Update on the daemon.
8989
try {

app/Services/Api/PermissionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(ApiPermissionRepositoryInterface $repository)
4040
public function create($key, $permission)
4141
{
4242
// @todo handle an array of permissions to do a mass assignment?
43-
return $this->repository->withoutFresh()->create([
43+
return $this->repository->withoutFreshModel()->create([
4444
'key_id' => $key,
4545
'permission' => $permission,
4646
]);

app/Services/DaemonKeys/DaemonKeyCreationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function handle(int $server, int $user)
7575
{
7676
$secret = DaemonKeyRepositoryInterface::INTERNAL_KEY_IDENTIFIER . str_random(40);
7777

78-
$this->repository->withoutFresh()->create([
78+
$this->repository->withoutFreshModel()->create([
7979
'user_id' => $user,
8080
'server_id' => $server,
8181
'secret' => $secret,

app/Services/DaemonKeys/DaemonKeyUpdateService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function handle($key)
7878
Assert::integerish($key, 'First argument passed to handle must be an integer, received %s.');
7979

8080
$secret = DaemonKeyRepositoryInterface::INTERNAL_KEY_IDENTIFIER . str_random(40);
81-
$this->repository->withoutFresh()->update($key, [
81+
$this->repository->withoutFreshModel()->update($key, [
8282
'secret' => $secret,
8383
'expires_at' => $this->carbon->now()->addMinutes($this->config->get('pterodactyl.api.key_expire_time'))->toDateTimeString(),
8484
]);

app/Services/Databases/DatabasePasswordService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function handle($database, string $password): bool
6969
$this->dynamic->set('dynamic', $database->database_host_id);
7070
$this->connection->beginTransaction();
7171

72-
$updated = $this->repository->withoutFresh()->update($database->id, [
72+
$updated = $this->repository->withoutFreshModel()->update($database->id, [
7373
'password' => $this->encrypter->encrypt($password),
7474
]);
7575

app/Services/Eggs/EggUpdateService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ public function handle($egg, array $data)
5757
}
5858
}
5959

60-
$this->repository->withoutFresh()->update($egg->id, $data);
60+
$this->repository->withoutFreshModel()->update($egg->id, $data);
6161
}
6262
}

app/Services/Eggs/Scripts/InstallScriptService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function handle($egg, array $data)
5252
}
5353
}
5454

55-
$this->repository->withoutFresh()->update($egg->id, [
55+
$this->repository->withoutFreshModel()->update($egg->id, [
5656
'script_install' => array_get($data, 'script_install'),
5757
'script_is_privileged' => array_get($data, 'script_is_privileged', 1),
5858
'script_entry' => array_get($data, 'script_entry'),

0 commit comments

Comments
 (0)