delete the null eater

This commit is contained in:
MathMan05 authored and Rory& committed 2025-05-28 08:46:35 +02:00
1 parent af70a7f21b
commit 5488874476
2 files changed
+2 -40

No files matched your search

+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,