Merge pull request #5047 from appwrite/feat-aggregate-stats

feat: add hamster script
This commit is contained in:
Christy Jacob
2023-01-26 18:26:48 +05:30
committed by GitHub
+8
View File
@@ -193,6 +193,10 @@ class Hamster extends Action
} catch (\Throwable $th) {
throw $th;
Console::error('Failed to update project ("' . $project->getId() . '") version with error: ' . $th->getMessage());
} finally {
$pools
->get($db)
->reclaim();
}
}
@@ -210,6 +214,10 @@ class Hamster extends Action
}
$this->sendEmail($register);
$pools
->get('console')
->reclaim();
}
private function sendEmail(Registry $register)