diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php
index 0313de1fc6..f83da8e590 100644
--- a/app/controllers/api/storage.php
+++ b/app/controllers/api/storage.php
@@ -1616,7 +1616,7 @@ App::get('/v1/storage/usage')
/** @var Utopia\Database\Database $dbForInternal */
$usage = [];
- if (App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') {
+ if (App::getEnv('_APP_USAGE_STATS', 'enabled') === 'enabled') {
$periods = [
'24h' => [
'period' => '30m',
@@ -1714,7 +1714,7 @@ App::get('/v1/storage/:bucketId/usage')
}
$usage = [];
- if (App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') {
+ if (App::getEnv('_APP_USAGE_STATS', 'enabled') === 'enabled') {
$periods = [
'24h' => [
'period' => '30m',
diff --git a/app/views/console/database/document.phtml b/app/views/console/database/document.phtml
index 4c1eddd02d..da0413e772 100644
--- a/app/views/console/database/document.phtml
+++ b/app/views/console/database/document.phtml
@@ -86,49 +86,210 @@ $logs = $this->getParam('logs', null);
pattern="^[a-zA-Z0-9][a-zA-Z0-9_-]{1,36}$" />
-