Remove remove_bid_after_accept setting (#1100)

* Remove "Remove bid on accept" setting and remove bids after PIREP was filed

fixes #1039

* Add migration to remove setting from database

* fix migration naming and remove obsolete code

Co-authored-by: Andreas Palm <ap@ewsp.de>
This commit is contained in:
exciler
2021-03-27 13:33:21 +01:00
committed by GitHub
parent c2b0b69eb2
commit d4c301a36c
5 changed files with 25 additions and 34 deletions

View File

@@ -528,7 +528,6 @@ class PIREPTest extends TestCase
{
$bidSvc = app(BidService::class);
$flightSvc = app(FlightService::class);
$this->settingsRepo->store('pireps.remove_bid_on_accept', true);
$user = factory(User::class)->create([
'flight_time' => 0,
@@ -549,7 +548,7 @@ class PIREPTest extends TestCase
]);
$pirep = $this->pirepSvc->create($pirep, []);
$this->pirepSvc->changeState($pirep, PirepState::ACCEPTED);
$this->pirepSvc->submit($pirep);
$user_bid = Bid::where([
'user_id' => $user->id,