Skip to content

Commit

Permalink
Forgot to add notify to CreatScheduleCommand in API
Browse files Browse the repository at this point in the history
  • Loading branch information
MinThaMie committed Apr 26, 2019
1 parent 57dd008 commit 29e0cf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/Http/Controllers/Api/ScheduleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public function store()
Binput::get('status'),
Binput::get('scheduled_at'),
Binput::get('completed_at'),
Binput::get('components', [])
Binput::get('components', []),
Binput::get('notify', false)
));
} catch (QueryException $e) {
throw new BadRequestHttpException();
Expand Down
1 change: 0 additions & 1 deletion tests/Api/ScheduleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public function test_can_create_schedule()
'message' => 'Foo bar, baz.',
'status' => 1,
'scheduled_at' => date('Y-m-d H:i'),
'notify' => 1,
];

$response = $this->json('POST', '/api/v1/schedules/', $schedule);
Expand Down

0 comments on commit 29e0cf9

Please sign in to comment.