Merge pull request #934 from appwrite/fix-usage-stats-reduce

fix: usage stat reduce function
This commit is contained in:
Torsten Dittmann
2024-03-07 13:52:53 +01:00
committed by GitHub
+1 -1
View File
@@ -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;
},
{