mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #9610 from appwrite/remove-audit-payload
Remove audit payload
This commit is contained in:
commit
baffa615e6
3 changed files with 9 additions and 3 deletions
|
|
@ -74,7 +74,11 @@ class Audits extends Action
|
||||||
Console::info('Aggregating audit logs');
|
Console::info('Aggregating audit logs');
|
||||||
|
|
||||||
$event = $payload['event'] ?? '';
|
$event = $payload['event'] ?? '';
|
||||||
$auditPayload = $payload['payload'] ?? '';
|
|
||||||
|
$auditPayload = '';
|
||||||
|
if ($project->getId() === 'console') {
|
||||||
|
$auditPayload = $payload['payload'] ?? '';
|
||||||
|
}
|
||||||
$mode = $payload['mode'] ?? '';
|
$mode = $payload['mode'] ?? '';
|
||||||
$resource = $payload['resource'] ?? '';
|
$resource = $payload['resource'] ?? '';
|
||||||
$userAgent = $payload['userAgent'] ?? '';
|
$userAgent = $payload['userAgent'] ?? '';
|
||||||
|
|
|
||||||
|
|
@ -565,7 +565,8 @@ class Databases extends Action
|
||||||
try {
|
try {
|
||||||
$documents = $database->deleteDocuments($collectionId, $queries);
|
$documents = $database->deleteDocuments($collectionId, $queries);
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
Console::error('Failed to delete documents for collection ' . $collectionId . ': ' . $th->getMessage());
|
$tenant = $database->getSharedTables() ? 'Tenant:'.$database->getTenant() : '';
|
||||||
|
Console::error("Failed to delete documents for collection:{$database->getNamespace()}_{$collectionId} {$tenant} :{$th->getMessage()}");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1050,7 +1050,8 @@ class Deletes extends Action
|
||||||
try {
|
try {
|
||||||
$documents = $database->deleteDocuments($collection, $queries);
|
$documents = $database->deleteDocuments($collection, $queries);
|
||||||
} catch (Throwable $th) {
|
} catch (Throwable $th) {
|
||||||
Console::error('Failed to delete documents for collection ' . $collection . ': ' . $th->getMessage());
|
$tenant = $database->getSharedTables() ? 'Tenant:'.$database->getTenant() : '';
|
||||||
|
Console::error("Failed to delete documents for collection:{$database->getNamespace()}_{$collection} {$tenant} :{$th->getMessage()}");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue