mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
update: readability.
This commit is contained in:
parent
65c767c2b0
commit
0556f8fdca
1 changed files with 10 additions and 2 deletions
|
|
@ -103,8 +103,16 @@ class XList extends Action
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$audit = new Audit($dbForProject);
|
$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);
|
$logs = $audit->getLogsByResource($resource, $queries);
|
||||||
|
|
||||||
$output = [];
|
$output = [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue