Update free trial indicator in usage and billing page

This commit is contained in:
Tuan Dang
2023-07-04 16:01:20 +07:00
parent c30ec8cb5f
commit 553c986aa8
5 changed files with 59 additions and 15 deletions
@@ -30,6 +30,8 @@ interface FeatureSet {
customRateLimits: boolean;
customAlerts: boolean;
auditLogs: boolean;
status: 'incomplete' | 'incomplete_expired' | 'trialing' | 'active' | 'past_due' | 'canceled' | 'unpaid' | null;
trial_end: number | null;
}
/**
@@ -60,6 +62,8 @@ class EELicenseService {
customRateLimits: true,
customAlerts: true,
auditLogs: false,
status: null,
trial_end: null
}
public localFeatureSet: NodeCache;
+1
View File
@@ -45,6 +45,7 @@ export const createOrganization = async ({
name,
customerId
}).save();
} else {
organization = await new Organization({
name,