Merge pull request #9097 from appwrite/fix-usage-payload-bug

Fix usage payload bug
This commit is contained in:
Christy Jacob
2024-12-12 14:37:10 +04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ class Usage extends Action
}
$this->stats[$projectId]['project'] = [
'$uid' => $project->getId(),
'$id' => $project->getId(),
'$internalId' => $project->getInternalId(),
'database' => $project->getAttribute('database'),
];
+1 -1
View File
@@ -66,7 +66,7 @@ class UsageDump extends Action
continue;
}
console::log('[' . DateTime::now() . '] ProjectId [' . $project->getInternalId() . '] ReceivedAt [' . $receivedAt . '] ' . $numberOfKeys . ' keys');
console::log('['.DateTime::now().'] Id: '.$project->getId(). ' InternalId: '.$project->getInternalId(). ' Db: '.$project->getAttribute('database').' ReceivedAt: '.$receivedAt. ' Keys: '.$numberOfKeys);
try {
$dbForProject = $getProjectDB($project);