update: readability.

This commit is contained in:
Darshan 2025-08-08 16:06:19 +05:30
parent 65c767c2b0
commit 0556f8fdca

View file

@ -103,8 +103,16 @@ class XList extends Action
]);
$audit = new Audit($dbForProject);
$prefix = $this->getContext() === TABLES ? 'grid/' : '';
$resource = "database/$databaseId/$prefix{$this->getContext()}/$collectionId";
$context = $this->getContext();
$isTables = $context === TABLES;
if (!$isTables) {
$resource = "database/$databaseId/$context/$collectionId";
} else {
$resource = "database/$databaseId/grid/$context/$collectionId";
}
$logs = $audit->getLogsByResource($resource, $queries);
$output = [];