fix: remove platform

This commit is contained in:
DecDuck
2025-09-06 19:23:02 +10:00
parent bfd5c8e761
commit d84c70a05f
8 changed files with 42 additions and 35 deletions

View File

@ -1,4 +1,4 @@
import { Platform, type HardwarePlatform } from "~/prisma/client/enums";
import { HardwarePlatform } from "~/prisma/client/enums";
import prisma from "../db/database";
import type { PlatformLink } from "~/prisma/client/client";
@ -26,7 +26,7 @@ export async function convertIDToLink(
});
if (link) return link;
if (Platform[id as Platform]) {
if (HardwarePlatform[id as HardwarePlatform]) {
return await prisma.platformLink.create({
data: {
id,