payload bug fix

This commit is contained in:
shimon 2024-12-12 16:55:14 +02:00
parent f6157dd2c0
commit 6a28d4eee6

View file

@ -65,13 +65,13 @@ class UsageDump extends Action
* Start temp bug fallback
*/
$document = $stats['project'] ?? [];
if(!empty($document['$uid'])) {
if (!empty($document['$uid'])) {
$document['$id'] = $document['$uid'];
}
$project = new Document($document);
if(empty($project->getAttribute('database'))){
if (empty($project->getAttribute('database'))) {
var_dump($stats);
}