mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-15 17:21:13 +10:00
* feat: add readDropValidatedBody w/ special handler for ArkErrors * fix: lint
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { type } from "arktype";
|
||||
import { readDropValidatedBody } from "~/server/arktype";
|
||||
import aclManager from "~/server/internal/acls";
|
||||
import prisma from "~/server/internal/db/database";
|
||||
import libraryManager from "~/server/internal/library";
|
||||
@ -33,7 +34,7 @@ export default defineEventHandler(async (h3) => {
|
||||
onlySetup,
|
||||
delta,
|
||||
umuId,
|
||||
} = await readValidatedBody(h3, ImportVersion);
|
||||
} = await readDropValidatedBody(h3, ImportVersion);
|
||||
|
||||
const platformParsed = parsePlatform(platform);
|
||||
if (!platformParsed)
|
||||
|
||||
Reference in New Issue
Block a user