fix: resolve typescript and build errors across admin and guest apps
This commit is contained in:
@@ -96,10 +96,10 @@ export const buildPackageUsageMetrics = (pkg: TenantPackageSummary): PackageUsag
|
||||
const resolvedGalleryUsed = normalizeCount(galleryUsed);
|
||||
|
||||
return [
|
||||
{ key: 'events', limit: eventLimit, used: eventUsed, remaining: resolvedEventRemaining },
|
||||
{ key: 'guests', limit: guestLimit, used: guestUsed, remaining: resolvedGuestRemaining },
|
||||
{ key: 'photos', limit: photoLimit, used: photoUsed, remaining: resolvedPhotoRemaining },
|
||||
{ key: 'gallery', limit: galleryLimit, used: resolvedGalleryUsed, remaining: resolvedGalleryRemaining },
|
||||
{ key: 'events' as const, limit: eventLimit, used: eventUsed, remaining: resolvedEventRemaining },
|
||||
{ key: 'guests' as const, limit: guestLimit, used: guestUsed, remaining: resolvedGuestRemaining },
|
||||
{ key: 'photos' as const, limit: photoLimit, used: photoUsed, remaining: resolvedPhotoRemaining },
|
||||
{ key: 'gallery' as const, limit: galleryLimit, used: resolvedGalleryUsed, remaining: resolvedGalleryRemaining },
|
||||
].filter((metric) => metric.limit !== null);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user