Resolve the highest-priority subscription via a deferred import (avoids a static cycle).
(userId: string)
| 23 | |
| 24 | /** Resolve the highest-priority subscription via a deferred import (avoids a static cycle). */ |
| 25 | async function resolveSub(userId: string): Promise<HighestPrioritySubscription | null> { |
| 26 | const { getHighestPrioritySubscription } = await import('@/lib/billing/core/subscription') |
| 27 | return getHighestPrioritySubscription(userId) |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Convert GB to bytes |
no test coverage detected