Merge pull request #861 from ClarenceYk/for_test

Update app/requests.ts
This commit is contained in:
Yifei Zhang 2023-04-17 13:00:06 +08:00 committed by GitHub
commit 7cd9f644ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,6 +114,10 @@ export async function requestUsage() {
response.total_usage = Math.round(response.total_usage) / 100;
}
if (total.hard_limit_usd) {
total.hard_limit_usd = Math.round(total.hard_limit_usd * 100) / 100;
}
return {
used: response.total_usage,
subscription: total.hard_limit_usd,