- Quick command to update galaxies

pull/3436/head
Steve Clement 2018-07-05 09:23:17 +02:00
parent 78d17b5d06
commit 7c101b4e49
1 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@
App::uses('AppShell', 'Console/Command');
class AdminShell extends AppShell
{
public $uses = array('Event', 'Post', 'Attribute', 'Job', 'User', 'Task', 'Whitelist', 'Server', 'Organisation', 'AdminSetting');
public $uses = array('Event', 'Post', 'Attribute', 'Job', 'User', 'Task', 'Whitelist', 'Server', 'Organisation', 'AdminSetting', 'Galaxy');
public function jobGenerateCorrelation() {
$jobId = $this->args[0];
@ -34,6 +34,15 @@ class AdminShell extends AppShell
$this->ShadowAttribute->generateCorrelation($jobId);
}
public function updateGalaxies() {
$result = $this->Galaxy->update($force);
if ($result) {
echo 'Galaxies updated';
} else {
echo 'Could not update Galaxies';
}
}
public function jobUpgrade24() {
$jobId = $this->args[0];
$user_id = $this->args[1];