1
0
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:
Nikola Cirkovic 2022-05-23 21:25:46 +02:00
parent 14a988f5fa
commit 58116cb3c9

View File

@ -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);
}