Remove redundant document pass through
This commit is contained in:
parent
7106131545
commit
e81ab1d1e0
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ class Deletes extends Action
|
||||||
$this->deleteCacheByDate($project, $getProjectDB, $datetime);
|
$this->deleteCacheByDate($project, $getProjectDB, $datetime);
|
||||||
break;
|
break;
|
||||||
case DELETE_TYPE_SCHEDULES:
|
case DELETE_TYPE_SCHEDULES:
|
||||||
$this->deleteSchedules($dbForConsole, $getProjectDB, $datetime, $document);
|
$this->deleteSchedules($dbForConsole, $getProjectDB, $datetime);
|
||||||
break;
|
break;
|
||||||
case DELETE_TYPE_TOPIC:
|
case DELETE_TYPE_TOPIC:
|
||||||
$this->deleteTopic($project, $getProjectDB, $document);
|
$this->deleteTopic($project, $getProjectDB, $document);
|
||||||
|
@ -181,7 +181,7 @@ class Deletes extends Action
|
||||||
* @throws Structure
|
* @throws Structure
|
||||||
* @throws DatabaseException
|
* @throws DatabaseException
|
||||||
*/
|
*/
|
||||||
private function deleteSchedules(Database $dbForConsole, callable $getProjectDB, string $datetime, ?Document $document = null): void
|
private function deleteSchedules(Database $dbForConsole, callable $getProjectDB, string $datetime): void
|
||||||
{
|
{
|
||||||
$this->listByGroup(
|
$this->listByGroup(
|
||||||
'schedules',
|
'schedules',
|
||||||
|
|
Loading…
Reference in a new issue