mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 03:00:14 +00:00
User can submit new journal through API.
This commit is contained in:
@@ -89,21 +89,13 @@ class BillRepository implements BillRepositoryInterface
|
||||
/**
|
||||
* Find bill by parameters.
|
||||
*
|
||||
* @param Bill|null $bill
|
||||
* @param int|null $billId
|
||||
* @param string|null $billName
|
||||
*
|
||||
* @return Bill|null
|
||||
*/
|
||||
public function findBill(?Bill $bill, ?int $billId, ?string $billName): ?Bill
|
||||
public function findBill( ?int $billId, ?string $billName): ?Bill
|
||||
{
|
||||
Log::debug('Searching for bill information.');
|
||||
if ($bill instanceof Bill && $bill->user_id === $this->user->id) {
|
||||
Log::debug(sprintf('Bill object in parameters, will return Bill #%d', $bill->id));
|
||||
|
||||
return $bill;
|
||||
}
|
||||
|
||||
if (null !== $billId) {
|
||||
$searchResult = $this->find((int)$billId);
|
||||
if (null !== $searchResult) {
|
||||
|
Reference in New Issue
Block a user