diff --git a/app/Http/Controllers/BountyController.php b/app/Http/Controllers/BountyController.php index b18c4055b3..8dcf131212 100644 --- a/app/Http/Controllers/BountyController.php +++ b/app/Http/Controllers/BountyController.php @@ -49,12 +49,11 @@ public function store(StoreTorrentRequestBountyRequest $request, TorrentRequest $bounty = $torrentRequest->bounties()->create(['user_id' => $user->id] + $request->validated()); - $torrentRequest->incrementEach([ - 'votes' => 1, - 'bounty' => $request->integer('seedbonus'), - ], [ - 'created_at' => now(), - ]); + $torrentRequest->increment('bounty', $request->integer('seedbonus')); + + $torrentRequest->votes++; + $torrentRequest->created_at = now(); + $torrentRequest->save(); if ($request->boolean('anon') == 0) { $this->chatRepository->systemMessage(