MCPcopy Index your code
hub / github.com/simstudioai/sim / resolveSub

Function resolveSub

apps/sim/lib/billing/storage/limits.ts:25–28  ·  view source on GitHub ↗

Resolve the highest-priority subscription via a deferred import (avoids a static cycle).

(userId: string)

Source from the content-addressed store, hash-verified

23
24/** Resolve the highest-priority subscription via a deferred import (avoids a static cycle). */
25async 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

Callers 2

getUserStorageLimitFunction · 0.85
getUserStorageUsageFunction · 0.85

Calls 1

Tested by

no test coverage detected