mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
enable ignoring stats on admin requests
This commit is contained in:
@@ -343,7 +343,7 @@ App::shutdown()
|
||||
if (
|
||||
App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled'
|
||||
&& $project->getId()
|
||||
// && $mode !== APP_MODE_ADMIN // TODO: add check to make sure user is admin
|
||||
&& $mode !== APP_MODE_ADMIN // TODO: add check to make sure user is admin
|
||||
&& !empty($route->getLabel('sdk.namespace', null))
|
||||
) { // Don't calculate console usage on admin mode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user