From 336a9a97f9ae05cf8ccaac6dbeb087025a0bde2b Mon Sep 17 00:00:00 2001 From: Mike Conway Date: Wed, 3 Oct 2018 19:37:16 -0700 Subject: [PATCH] Update PiggyBankRequest.php Fix inconsistencies between repository and request variables --- app/Api/V1/Requests/PiggyBankRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Api/V1/Requests/PiggyBankRequest.php b/app/Api/V1/Requests/PiggyBankRequest.php index 3024b0eac9..080a9fe8c1 100644 --- a/app/Api/V1/Requests/PiggyBankRequest.php +++ b/app/Api/V1/Requests/PiggyBankRequest.php @@ -58,8 +58,8 @@ class PiggyBankRequest extends Request 'account_id' => $this->integer('account_id'), 'targetamount' => $this->string('target_amount'), 'current_amount' => $current, - 'start_date' => $this->date('start_date'), - 'target_date' => $this->date('target_date'), + 'startdate' => $this->date('start_date'), + 'targetdate' => $this->date('target_date'), 'notes' => $this->string('notes'), ]; }