Merge branch '1.8.x' into fix/sitesCreateDeployment

This commit is contained in:
Priyanshu Thapliyal 2025-10-01 22:21:58 +05:30 committed by GitHub
commit cc6f5fea6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 9 deletions

View file

@ -108,10 +108,7 @@ class XList extends Action
$audit = new Audit($dbForProject); $audit = new Audit($dbForProject);
$type = $this->getCollectionsEventsContext(); $type = $this->getCollectionsEventsContext();
$context = $this->getContext(); $context = $this->getContext();
$resource = match ($context) { $resource = "database/$databaseId/$type/$collectionId/$context/{$document->getId()}";
ROWS => "database/$databaseId/grid/$type/$collectionId/$context/{$document->getId()}",
default => "database/$databaseId/$type/$collectionId/$context/{$document->getId()}",
};
$logs = $audit->getLogsByResource($resource, $queries); $logs = $audit->getLogsByResource($resource, $queries);

View file

@ -104,11 +104,7 @@ class XList extends Action
$audit = new Audit($dbForProject); $audit = new Audit($dbForProject);
$context = $this->getContext(); $context = $this->getContext();
$resource = match ($context) { $resource = "database/$databaseId/$context/$collectionId";
TABLES => "database/$databaseId/grid/$context/$collectionId",
default => "database/$databaseId/$context/$collectionId",
};
$logs = $audit->getLogsByResource($resource, $queries); $logs = $audit->getLogsByResource($resource, $queries);
$output = []; $output = [];