v.2.4 RestoreShift
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace App\Commands;
|
||||
|
||||
use App\Component\Models\ExchangeShifts;
|
||||
use App\Component\Models\OrderBot;
|
||||
use App\Component\Models\Report;
|
||||
use App\Component\Models\Shifts;
|
||||
use App\Console\Commands\HRCCommand;
|
||||
use App\Console\Commands\HRCCommandInterface;
|
||||
|
||||
@@ -13,7 +13,7 @@ class OutOrders extends HRCCommand implements HRCCommandInterface {
|
||||
|
||||
public function command($input, $output = null) {
|
||||
if ((array_key_exists('shift_id', $input)) === true) {
|
||||
$shifts = Shifts::select('id', 'opened', 'closed')->where('id', '=', $input['shift_id'])->get();
|
||||
$shifts = ExchangeShifts::select('id', 'opened', 'closed')->where('id', '=', $input['shift_id'])->get();
|
||||
if (is_array($shifts) || is_object($shifts)) {
|
||||
foreach ($shifts as $shift) {
|
||||
$out = array('id' => $shift['id'], 'opened' => $shift['opened'], 'closed' => $shift['closed']);
|
||||
|
||||
Reference in New Issue
Block a user