From e169d3b019c5a1bf644b8b10bced1dd4b63d2e49 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 23 Jun 2022 08:58:47 +0000 Subject: [PATCH] fix usage stats on dashboard --- app/controllers/api/projects.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 429ebeb52f..12122e1f7b 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -278,8 +278,8 @@ App::get('/v1/projects/:projectId/usage') 'network', 'executions', 'users.count', - 'database.documents.count', - 'database.collections.count', + 'databases.documents.count', + 'databases.collections.count', 'storage.total' ]; @@ -326,8 +326,8 @@ App::get('/v1/projects/:projectId/usage') 'requests' => $stats['requests'], 'network' => $stats['network'], 'functions' => $stats['executions'], - 'documents' => $stats['database.documents.count'], - 'collections' => $stats['database.collections.count'], + 'documents' => $stats['databases.documents.count'], + 'collections' => $stats['databases.collections.count'], 'users' => $stats['users.count'], 'storage' => $stats['storage.total'] ]);