mirror of
https://github.com/appwrite/appwrite
synced 2026-05-15 13:08:31 +00:00
chore: update initializing dbForLogs
This commit is contained in:
parent
7f76bfed11
commit
ae00a69592
1 changed files with 4 additions and 1 deletions
|
|
@ -414,8 +414,11 @@ class Deletes extends Action
|
|||
*/
|
||||
private function deleteUsageStats(Document $project, callable $getProjectDB, callable $getLogsDB, string $hourlyUsageRetentionDatetime): void
|
||||
{
|
||||
/** @var \Utopia\Database\Database $dbForProject*/
|
||||
$dbForProject = $getProjectDB($project);
|
||||
$dbForLogs = $getLogsDB($project);
|
||||
|
||||
/** @var \Utopia\Database\Database $dbForLogs*/
|
||||
$dbForLogs = call_user_func($getLogsDB, $project);
|
||||
|
||||
// Delete Usage stats from projectDB
|
||||
$this->deleteByGroup('stats', [
|
||||
|
|
|
|||
Loading…
Reference in a new issue