mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix type error
This commit is contained in:
@@ -332,7 +332,7 @@ class StatsUsage extends Action
|
||||
{
|
||||
|
||||
foreach ($this->stats as $stats) {
|
||||
$project = new Document($stats['project'] ?? []);
|
||||
$project = $stats['project'] ?? new Document([]);
|
||||
$numberOfKeys = !empty($stats['keys']) ? count($stats['keys']) : 0;
|
||||
$receivedAt = $stats['receivedAt'] ?? null;
|
||||
if ($numberOfKeys === 0) {
|
||||
|
||||
Reference in New Issue
Block a user