Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

using enum keys for ACCOUNT_PLANS

Blue Mouse4e69f79d6741
diff --git a/src/user/entities/user.entity.ts b/src/user/entities/user.entity.ts
index f698a2f97..7809f37cf 100644
--- a/src/user/entities/user.entity.ts
+++ b/src/user/entities/user.entity.ts
@@ -10,27 +10,27 @@ export enum PlanCode {
}
export const ACCOUNT_PLANS = {
- free: {
+ [PlanCode.free]: {
id: PlanCode.free,
displayName: 'Free plan',
monthlyUsageLimit: 5000,
maxProjects: 10,
},
- freelancer: {
+ [PlanCode.freelancer]: {
id: PlanCode.freelancer,
displayName: 'Freelancer plan',
monthlyUsageLimit: 100000,
maxProjects: 20,
pid: '752316',
},
- startup: {
+ [PlanCode.startup]: {
id: PlanCode.startup,
displayName: 'Startup plan',
monthlyUsageLimit: 500000,
maxProjects: 20,
pid: '752317',
},
- enterprise: {
+ [PlanCode.enterprise]: {
id: PlanCode.enterprise,
displayName: 'Enterprise plan',
monthlyUsageLimit: 1000000,