diff --git a/server/internal/utils/parseplatform.ts b/server/internal/utils/parseplatform.ts index bc3cb49..0ea9144 100644 --- a/server/internal/utils/parseplatform.ts +++ b/server/internal/utils/parseplatform.ts @@ -1,15 +1,11 @@ import { Platform } from "@prisma/client"; export function parsePlatform(platform: string) { - switch (platform) { + switch (platform.toLowerCase()) { case "linux": - case "Linux": return Platform.Linux; case "windows": - case "Windows": return Platform.Windows; - case "macOS": - case "MacOS": case "mac": case "macos": return Platform.macOS;