mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
fix param order
This commit is contained in:
parent
d4660a70c3
commit
84e9c8243c
1 changed files with 4 additions and 5 deletions
|
|
@ -148,7 +148,7 @@ class Deletes extends Action
|
||||||
break;
|
break;
|
||||||
case DELETE_TYPE_AUDIT:
|
case DELETE_TYPE_AUDIT:
|
||||||
if (!$project->isEmpty()) {
|
if (!$project->isEmpty()) {
|
||||||
$this->deleteAuditLogs($project, $auditRetention, $getAudit);
|
$this->deleteAuditLogs($project, $getAudit, $auditRetention);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DELETE_TYPE_REALTIME:
|
case DELETE_TYPE_REALTIME:
|
||||||
|
|
@ -783,14 +783,13 @@ class Deletes extends Action
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Database $dbForPlatform
|
* @param Document $project
|
||||||
* @param callable $getProjectDB
|
|
||||||
* @param string $auditRetention
|
|
||||||
* @param callable $getAudit
|
* @param callable $getAudit
|
||||||
|
* @param string $auditRetention
|
||||||
* @return void
|
* @return void
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private function deleteAuditLogs(Document $project, string $auditRetention, callable $getAudit): void
|
private function deleteAuditLogs(Document $project, callable $getAudit, string $auditRetention): void
|
||||||
{
|
{
|
||||||
$projectId = $project->getId();
|
$projectId = $project->getId();
|
||||||
/** @var Audit $audit */
|
/** @var Audit $audit */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue