1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

fix(usage): use proper projectdb namespace

This commit is contained in:
Torsten Dittmann 2021-08-25 12:08:23 +02:00
parent 4dd9424613
commit 5d430b7b53

View file

@ -190,6 +190,8 @@ App::get('/v1/projects/:projectId/usage')
throw new Exception('Project not found', 404);
}
$projectDB->setNamespace('app_'.$project->getId());
if(App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') {
$period = [
@ -267,7 +269,6 @@ App::get('/v1/projects/:projectId/usage')
// Users
$projectDB->getCollection([
'limit' => 0,
'offset' => 0,