mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
INA-5 | Set explicit response code for better readability.
This commit is contained in:
parent
14a988f5fa
commit
58116cb3c9
@ -62,7 +62,7 @@ class TaskSchedulerService
|
||||
}
|
||||
$update = $this->scheduler->update($data);
|
||||
if ($update) {
|
||||
return response(['successfully_updated_scheduler']);
|
||||
return response(['successfully_updated_scheduler'],200);
|
||||
}
|
||||
return response(['failed_to_update_scheduler'], 400);
|
||||
}
|
||||
@ -209,7 +209,7 @@ class TaskSchedulerService
|
||||
$job = $this->setJobParameters($job, $request);
|
||||
$job->save();
|
||||
|
||||
return response('job_successfully_updated');
|
||||
return response(['job_successfully_updated'],200);
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user