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!

Better provider type name

Blue Mouse48614e6c82dd
diff --git a/backend/apps/cloud/src/data-import/dto/upload-import.dto.ts b/backend/apps/cloud/src/data-import/dto/upload-import.dto.ts
index 26ce83163..25413d40e 100644
--- a/backend/apps/cloud/src/data-import/dto/upload-import.dto.ts
+++ b/backend/apps/cloud/src/data-import/dto/upload-import.dto.ts
@@ -11,5 +11,5 @@ export class UploadImportDto {
})
@IsString()
@IsIn(SUPPORTED_PROVIDERS)
- provider: string
+ provider: (typeof SUPPORTED_PROVIDERS)[number]
}
diff --git a/backend/apps/community/src/data-import/dto/upload-import.dto.ts b/backend/apps/community/src/data-import/dto/upload-import.dto.ts
index 26ce83163..25413d40e 100644
--- a/backend/apps/community/src/data-import/dto/upload-import.dto.ts
+++ b/backend/apps/community/src/data-import/dto/upload-import.dto.ts
@@ -11,5 +11,5 @@ export class UploadImportDto {
})
@IsString()
@IsIn(SUPPORTED_PROVIDERS)
- provider: string
+ provider: (typeof SUPPORTED_PROVIDERS)[number]
}