refactor usage poc

This commit is contained in:
shimon 2024-01-28 11:46:13 +02:00
parent 7a2ee683e3
commit 36fddd4156

View file

@ -86,10 +86,11 @@ class UsageDump extends Action
]));
} catch (Duplicate $th) {
if ($value < 0) {
var_dump([
'id' => $time . '_' . $period . '_' . $key,
'value' => $value,
]);
//Todo debug (to be removed laster @shimon)
// var_dump([
// 'id' => $time . '_' . $period . '_' . $key,
// 'value' => $value,
// ]);
$dbForProject->decreaseDocumentAttribute(
'stats_v2',
$id,