chg: [Console:trainingShell] Provide correct filters for wiping data

pull/9291/head
Sami Mokaddem 2023-09-15 16:01:06 +02:00
parent 088430d4d4
commit f38dc73fc9
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 3 deletions

View File

@ -211,17 +211,17 @@ class TrainingShell extends AppShell {
public function WipeAllSyncs()
{
$this->Server->deleteAll(['Server.id' > 0]);
$this->Server->deleteAll(['Server.id !=' => 0]);
}
public function WipeAllUsers()
{
$this->User->deleteAll(['User.id' > 1]);
$this->User->deleteAll(['User.email !=' => 'admin@admin.test']);
}
public function WipeAllOrgs()
{
$this->Organisation->deleteAll(['Organisation.id' > 1]);
$this->Organisation->deleteAll(['Organisation.name !=' => 'ORGNAME']);
}
private function __createOrgFromBlueprint($id)