mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-21 04:16:38 +00:00
used zod codemod
This commit is contained in:
@@ -9,17 +9,13 @@ import createHttpError from "http-errors";
|
||||
import logger from "@server/logger";
|
||||
import { fromError } from "zod-validation-error";
|
||||
|
||||
const removeUserSiteParamsSchema = z
|
||||
.object({
|
||||
const removeUserSiteParamsSchema = z.strictObject({
|
||||
userId: z.string()
|
||||
})
|
||||
.strict();
|
||||
});
|
||||
|
||||
const removeUserSiteSchema = z
|
||||
.object({
|
||||
siteId: z.number().int().positive()
|
||||
})
|
||||
.strict();
|
||||
const removeUserSiteSchema = z.strictObject({
|
||||
siteId: z.int().positive()
|
||||
});
|
||||
|
||||
export async function removeUserSite(
|
||||
req: Request,
|
||||
|
||||
Reference in New Issue
Block a user