Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

proper dto typing

Blue Mouse0ff442b1fc00
diff --git a/backend/apps/cloud/src/revenue/dto/revenue-stats.dto.ts b/backend/apps/cloud/src/revenue/dto/revenue-stats.dto.ts
index c2f28ab7c..b2e2e7de3 100644
--- a/backend/apps/cloud/src/revenue/dto/revenue-stats.dto.ts
+++ b/backend/apps/cloud/src/revenue/dto/revenue-stats.dto.ts
@@ -65,16 +65,19 @@ export class RevenueTransactionDto {
@ApiProperty({ description: 'Original currency' })
originalCurrency: string
- @ApiProperty({ description: 'Customer email (if available)' })
+ @ApiProperty({
+ description: 'Customer email (if available)',
+ required: false,
+ })
customerEmail?: string
- @ApiProperty({ description: 'Product name (if available)' })
+ @ApiProperty({ description: 'Product name (if available)', required: false })
productName?: string
- @ApiProperty({ description: 'Profile ID for attribution' })
+ @ApiProperty({ description: 'Profile ID for attribution', required: false })
profileId?: string
- @ApiProperty({ description: 'Session ID for attribution' })
+ @ApiProperty({ description: 'Session ID for attribution', required: false })
sessionId?: string
@ApiProperty({ description: 'Transaction date' })