Commit 79f4e461 authored by Johannes's avatar Johannes

Remove unused MaintenanceControl::setbotasbib()

parent d9e7b646
......@@ -323,27 +323,6 @@ class MaintenanceControl extends ConsoleControl
}
}
public function setbotasbib()
{
if ($betriebe = $this->model->q('SELECT id, name, bezirk_id FROM fs_betrieb')) {
foreach ($betriebe as $b) {
if (!$this->model->q('SELECT foodsaver_id FROM fs_betrieb_team WHERE verantwortlich = 1 AND betrieb_id = ' . (int)$b['id'])) {
if ($foodsaver = $this->model->q('
SELECT fs.id, fs.name
FROM fs_foodsaver fs, fs_botschafter b
WHERE b.foodsaver_id = fs.id
AND b.bezirk_id = ' . $b['bezirk_id'])
) {
foreach ($foodsaver as $fs) {
echo $b['id'] . ',';
$this->model->insert('INSERT IGNORE INTO `fs_betrieb_team`(`foodsaver_id`, `betrieb_id`, `verantwortlich`, `active`) VALUES (' . $fs['id'] . ',' . $b['id'] . ',1,1)');
}
}
}
}
}
}
private function wakeupSleepingUsers()
{
$this->model->update('
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment