🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Limit browser, os, and device
Edward Cui3a69b640f458
diff --git a/server/src/services/import/mappings/umami.ts b/server/src/services/import/mappings/umami.tsindex 5768e8af0..43b25a987 100644--- a/server/src/services/import/mappings/umami.ts+++ b/server/src/services/import/mappings/umami.ts@@ -104,7 +104,7 @@ export class UmamiImportMapper {edge: "Edge",};- private static readonly browserSchema = z.string().transform((browser) => {+ private static readonly browserSchema = z.string().max(30).transform((browser) => {const key = browser.toLowerCase();return UmamiImportMapper.browserMap[key] ?? browser;});@@ -120,7 +120,7 @@ export class UmamiImportMapper {"chrome os": "Chrome OS",};- private static readonly osSchema = z.string().transform((os) => {+ private static readonly osSchema = z.string().max(25).transform((os) => {const key = os.toLowerCase();return UmamiImportMapper.osMap[key] ?? os;});@@ -132,7 +132,7 @@ export class UmamiImportMapper {tablet: "Mobile",};- private static readonly deviceSchema = z.string().transform((device) => {+ private static readonly deviceSchema = z.string().max(20).transform((device) => {const key = device.toLowerCase();return UmamiImportMapper.deviceMap[key] ?? device;});