mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-11 21:12:09 +10:00
15 lines
279 B
TypeScript
15 lines
279 B
TypeScript
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;
|
|
}
|