mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #934 from appwrite/fix-usage-stats-reduce
fix: usage stat reduce function
This commit is contained in:
@@ -45,8 +45,8 @@
|
||||
): Array<[string, number]> {
|
||||
return metrics.reduceRight(
|
||||
(acc, curr) => {
|
||||
acc.total -= curr.value;
|
||||
acc.data.unshift([curr.date, acc.total]);
|
||||
acc.total -= curr.value;
|
||||
return acc;
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user