Fixes found during testing. #617

This commit is contained in:
Korina Cordero 2021-08-19 05:26:16 +00:00
parent 27c8cd1f2d
commit dd34466593
2 changed files with 3 additions and 4 deletions

View file

@ -997,9 +997,6 @@ class RiderController extends APIController
$rider->setAvailable(true);
// set rider's current job order to null
$rider->setCurrentJobOrder();
$em->flush();
$data = [];

View file

@ -123,7 +123,9 @@ class ResqInvoiceGenerator implements InvoiceGeneratorInterface
// get current user
$user = $this->security->getUser();
if ($user != null)
// check if user is User or APIUser
//if ($user != null)
if ($user instanceof User)
{
$invoice->setCreatedBy($user);
}