* fixed stats usage events(hacky fix)

* updated redundant routes(happened during merge conflicts)
This commit is contained in:
ArnabChatterjee20k
2025-10-10 19:39:59 +05:30
parent f62f00d4d9
commit d51486c62a
21 changed files with 107 additions and 111 deletions
+4 -1
View File
@@ -578,7 +578,7 @@ class Event
$eventValues = \array_values($events);
/**
* Return a combined list of table, collection events and if tablesdb include all for backward compatibility
* Return a combined list of table, collection events and if tablesdb present then include all for backward compatibility
*/
return Event::mirrorCollectionEvents($pattern, $eventValues[0], $eventValues);
}
@@ -668,6 +668,9 @@ class Event
return array_unique($events);
}
/**
* Maps event terminology based on database type
*/
private static function getDatabaseTypeEvents(Document $database, array $event): array
{
$eventMap = [];