Replace 'database' with 'db' in $app->get() call

2022-03-24
Luca 3 years ago
parent 915b35c7b0
commit d84a336310

@ -16,7 +16,7 @@ $app = app();
$scheduleIds = $argv; $scheduleIds = $argv;
if ($argv[0] === '*') { if ($argv[0] === '*') {
$db = $app->get('database'); $db = $app->get('db');
$scheduleIds = array_map(fn(stdClass $schedule) => $schedule->id, $db->select('SELECT id FROM schedules')); $scheduleIds = array_map(fn(stdClass $schedule) => $schedule->id, $db->select('SELECT id FROM schedules'));
} }

Loading…
Cancel
Save