mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Filter the new users count to not include future days
This commit is contained in:
@@ -143,9 +143,11 @@
|
||||
<Heading tag="h6" size="7">Users</Heading>
|
||||
|
||||
<p class="text">The total number of users across all projects in your organization.</p>
|
||||
|
||||
<svelte:fragment slot="aside">
|
||||
{#if data.organizationUsage.users}
|
||||
{@const users = data.organizationUsage.users.filter(
|
||||
(user) => new Date(user.date) < new Date()
|
||||
)}
|
||||
{@const current = data.organizationUsage.usersTotal}
|
||||
{@const max = getServiceLimit('users', tier, plan)}
|
||||
<ProgressBarBig
|
||||
@@ -169,7 +171,7 @@
|
||||
{
|
||||
name: 'Users',
|
||||
data: accumulateFromEndingTotal(
|
||||
data.organizationUsage.users,
|
||||
users,
|
||||
data.organizationUsage.usersTotal
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user