mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 16:22:39 +10:00
completed game importing; partial work on version importing
This commit is contained in:
14
server/internal/utils/parseplatform.ts
Normal file
14
server/internal/utils/parseplatform.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { Platform } from "@prisma/client";
|
||||
|
||||
export function parsePlatform(platform: string) {
|
||||
switch (platform) {
|
||||
case "linux":
|
||||
case "Linux":
|
||||
return Platform.Linux;
|
||||
case "windows":
|
||||
case "Windows":
|
||||
return Platform.Windows;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user