fix: platformparse case sensitivity

This commit is contained in:
Husky
2025-03-20 17:52:04 -04:00
parent 6918e78cf9
commit e8afa274a7

View File

@ -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;