Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Linen-dev/linen.dev
/ serializeSubscription
Function
serializeSubscription
apps/web/pages/api/subscriptions/index.ts:16–23 ·
view source on GitHub ↗
(data: any)
Source
from the content-addressed store, hash-verified
14
}
15
16
function
serializeSubscription(data: any) {
17
return
{
18
plan: {
19
amount: data.plan.amount,
20
interval: data.plan.interval,
21
},
22
};
23
}
24
25
function
serializePaymentMethod(data: any) {
26
return
{
Callers
1
index
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected