mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
refactor usage poc
This commit is contained in:
parent
7a2ee683e3
commit
36fddd4156
1 changed files with 5 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue