mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
feat(leaderboard): add Stripe subscription link to customer names
This commit enhances the leaderboard by adding a clickable link to each customer's name, which directs to their Stripe subscription page. It also removes the ID column and includes the planId in the signing volume data for improved user experience and easier access to subscription details.
This commit is contained in:
@ -64,6 +64,11 @@ export async function getSigningVolume({
|
||||
id: true,
|
||||
},
|
||||
},
|
||||
Subscription: {
|
||||
select: {
|
||||
planId: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
team: {
|
||||
@ -79,6 +84,11 @@ export async function getSigningVolume({
|
||||
id: true,
|
||||
},
|
||||
},
|
||||
subscription: {
|
||||
select: {
|
||||
planId: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -102,6 +112,8 @@ export async function getSigningVolume({
|
||||
name,
|
||||
signingVolume,
|
||||
createdAt: subscription.createdAt,
|
||||
planId:
|
||||
subscription.User?.Subscription?.[0]?.planId || subscription.team?.subscription?.planId,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user