We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd4a17d + 9391f10 commit d549b95Copy full SHA for d549b95
src/routes/(console)/organization-[organization]/usage/[[invoice]]/+page.svelte
@@ -31,8 +31,20 @@
31
$: projects = (data.organizationUsage as OrganizationUsage).projects;
32
33
$: legendData = [
34
- { name: 'Reads', value: data.organizationUsage.databasesReadsTotal },
35
- { name: 'Writes', value: data.organizationUsage.databasesWritesTotal }
+ {
+ name: 'Reads',
36
+ value: data.organizationUsage.databasesReads.reduce(
37
+ (sum, singleDay) => sum + singleDay.value,
38
+ 0
39
+ )
40
+ },
41
42
+ name: 'Writes',
43
+ value: data.organizationUsage.databasesWrites.reduce(
44
45
46
47
+ }
48
];
49
</script>
50
0 commit comments