From e4fd30107f77deefccc1f2504a2b2b1d6a958b3d Mon Sep 17 00:00:00 2001 From: Dustin Do Date: Mon, 23 Sep 2024 12:02:30 +0700 Subject: [PATCH] chore(api): change const getUserPlan to function (#371) --- apps/api/v1/services/user.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/v1/services/user.service.ts b/apps/api/v1/services/user.service.ts index 9b068a0..d925297 100644 --- a/apps/api/v1/services/user.service.ts +++ b/apps/api/v1/services/user.service.ts @@ -102,7 +102,7 @@ export async function syncAllUsersSubscription() { } /** @alias getUserEntitlement */ -export const getUserPlan = (user: User): UserEntitlement => { +export function getUserPlan(user: User): UserEntitlement { return (user.entitlement as UserEntitlement) ?? 'saver' } /** @alias getUserPlan */