delete the null eater

This commit is contained in:
MathMan05
2025-05-28 08:46:35 +02:00
committed by Rory&
parent af70a7f21b
commit 5488874476
2 changed files with 2 additions and 40 deletions
+1 -2
View File
@@ -28,7 +28,6 @@ import {
ajv,
getPermission,
getRights,
normalizeBody,
} from "@spacebar/util";
import { AnyValidateFunction } from "ajv/dist/core";
import { NextFunction, Request, Response } from "express";
@@ -121,7 +120,7 @@ export function route(opts: RouteOptions) {
}
if (validate) {
const valid = validate(normalizeBody(req.body));
const valid = validate(req.body);
if (!valid) {
const fields: Record<
string,