1
0
Fork 0
mirror of synced 2024-07-02 21:20:58 +12:00

refactoring infinity metric calculation cli script, adding project id and after

options.
This commit is contained in:
shimon 2023-12-26 18:23:07 +02:00
parent 9382e4cec5
commit 77d423e645

View file

@ -385,6 +385,13 @@ class CreateInfMetric extends Action
$this->createInfMetric($dbForProject, 'users', $users);
}
/**
* @throws Exception\Authorization
* @throws Exception\Structure
* @throws Exception\Restricted
* @throws Exception\Conflict
* @throws Exception
*/
private function sessions(Database $dbForProject)
{
$users = $dbForProject->count('sessions');