mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 09:12:02 +10:00
fix: build errors
This commit is contained in:
@ -21,7 +21,5 @@ export async function search({ search, page, perPage, sortBy, sortOrder }: Searc
|
|||||||
|
|
||||||
const results = await getSigningVolume({ search, page, perPage, sortBy, sortOrder });
|
const results = await getSigningVolume({ search, page, perPage, sortBy, sortOrder });
|
||||||
|
|
||||||
console.log('results', results);
|
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,6 +6,7 @@ export type SigningVolume = {
|
|||||||
name: string;
|
name: string;
|
||||||
signingVolume: number;
|
signingVolume: number;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
|
planId: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetSigningVolumeOptions = {
|
export type GetSigningVolumeOptions = {
|
||||||
@ -106,14 +107,15 @@ export async function getSigningVolume({
|
|||||||
subscription.User?.name || subscription.team?.name || subscription.User?.email || 'Unknown';
|
subscription.User?.name || subscription.team?.name || subscription.User?.email || 'Unknown';
|
||||||
const signingVolume =
|
const signingVolume =
|
||||||
(subscription.User?.Document.length || 0) + (subscription.team?.document.length || 0);
|
(subscription.User?.Document.length || 0) + (subscription.team?.document.length || 0);
|
||||||
|
const planId =
|
||||||
|
subscription.User?.Subscription?.[0]?.planId || subscription.team?.subscription?.planId || '';
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: subscription.id,
|
id: subscription.id,
|
||||||
name,
|
name,
|
||||||
signingVolume,
|
signingVolume,
|
||||||
createdAt: subscription.createdAt,
|
createdAt: subscription.createdAt,
|
||||||
planId:
|
planId,
|
||||||
subscription.User?.Subscription?.[0]?.planId || subscription.team?.subscription?.planId,
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user