mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Merge pull request #9099 from appwrite/fix-usage-payload-bug
Fix usage payload bug
This commit is contained in:
commit
ef150ac2c0
1 changed files with 7 additions and 1 deletions
|
|
@ -59,7 +59,13 @@ class Usage extends Action
|
|||
throw new Exception('Missing payload');
|
||||
}
|
||||
|
||||
$project = new Document($payload['project'] ?? []);
|
||||
$document = $payload['project'] ?? [];
|
||||
|
||||
if (empty($document)) {
|
||||
var_dump($payload);
|
||||
}
|
||||
|
||||
$project = new Document($document);
|
||||
$projectId = $project->getInternalId();
|
||||
foreach ($payload['reduce'] ?? [] as $document) {
|
||||
if (empty($document)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue