Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage progress #249

Merged
merged 7 commits into from
May 14, 2024
Merged

Usage progress #249

merged 7 commits into from
May 14, 2024

Conversation

wtfsayo
Copy link
Contributor

@wtfsayo wtfsayo commented May 14, 2024

Tackles!
#72
#83

Copy link
Contributor

@plor plor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's go!

Comment on lines +377 to +385
const session = useAtomValue(sessionAtom)
const tenantId = _.get(session, 'tenantId')

const fetchTenantUsage = async (period: string) => {
const response = await fetch(`/api/usage/tenant/${tenantId}/${period}`);
if (!response.ok) {
throw new Error("Failed to fetch tenant usage");
}
return response.json();
return response.json()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mix of semi-colons and not is confusing me.

@plor plor merged commit a9ed211 into develop May 14, 2024
3 checks passed
@wtfsayo wtfsayo deleted the usage-progress branch May 17, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants