Fix transaction submission.

This commit is contained in:
James Cole 2021-02-17 06:54:00 +01:00
parent 252ea7277b
commit 2b06279f05
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
3 changed files with 5 additions and 1 deletions

View File

@ -36,6 +36,7 @@ use FireflyIII\User;
use Illuminate\Http\JsonResponse;
use Illuminate\Validation\ValidationException;
use League\Fractal\Resource\Item;
use Log;
/**
* Class StoreController
@ -79,7 +80,7 @@ class StoreController extends Controller
*/
public function store(TransactionStoreRequest $request): JsonResponse
{
Log::debug('Now in API TransactionController::store()');
Log::debug('Now in API StoreController::store()');
$data = $request->getAll();
$data['user'] = auth()->user()->id;

View File

@ -33,6 +33,7 @@ use FireflyIII\User;
use Illuminate\Http\JsonResponse;
use League\Fractal\Resource\Item;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Log;
/**
* Class UpdateController

View File

@ -59,6 +59,8 @@ class TransactionStoreRequest extends FormRequest
'apply_rules' => $this->boolean('apply_rules', true),
'transactions' => $this->getTransactionData(),
];
// TODO location
return $data;
}
/**