Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
darcyYe committed Oct 22, 2024
1 parent 822010e commit 449ee8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion packages/core/src/libraries/quota.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ export const createQuotaLibrary = (cloudConnection: CloudConnectionLibrary) => {
return;
}

const { planId,isEnterprisePlan, isAddOnAvailable } = await getTenantSubscriptionData(cloudConnection);
const { planId, isEnterprisePlan, isAddOnAvailable } = await getTenantSubscriptionData(
cloudConnection
);

Check warning on line 169 in packages/core/src/libraries/quota.ts

View check run for this annotation

Codecov / codecov/patch

packages/core/src/libraries/quota.ts#L167-L169

Added lines #L167 - L169 were not covered by tests

if (shouldReportSubscriptionUpdates(planId, isEnterprisePlan, key) && isAddOnAvailable) {
await reportSubscriptionUpdates(cloudConnection, key);
Expand Down
9 changes: 5 additions & 4 deletions packages/core/src/utils/subscription/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ export const getTenantSubscriptionData = async (
roles: Record<string, number>;
}> => {
const client = await cloudConnection.getClient();
const [{ planId, isEnterprisePlan, isAddOnAvailable }, { quota, usage, resources, roles }] = await Promise.all([
client.get('/api/tenants/my/subscription'),
client.get('/api/tenants/my/subscription-usage'),
]);
const [{ planId, isEnterprisePlan, isAddOnAvailable }, { quota, usage, resources, roles }] =
await Promise.all([
client.get('/api/tenants/my/subscription'),
client.get('/api/tenants/my/subscription-usage'),
]);

Check warning on line 38 in packages/core/src/utils/subscription/index.ts

View check run for this annotation

Codecov / codecov/patch

packages/core/src/utils/subscription/index.ts#L34-L38

Added lines #L34 - L38 were not covered by tests

return { planId, isEnterprisePlan, isAddOnAvailable, quota, usage, resources, roles };

Check warning on line 40 in packages/core/src/utils/subscription/index.ts

View check run for this annotation

Codecov / codecov/patch

packages/core/src/utils/subscription/index.ts#L40

Added line #L40 was not covered by tests
};
Expand Down

0 comments on commit 449ee8d

Please sign in to comment.