Merge pull request #27 from Huskydog9988/cleanup-platform-parse

fix: platformparse case sensitivity
This commit is contained in:
DecDuck
2025-03-20 23:10:28 +00:00
committed by GitHub

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;