mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-25 22:36:38 +00:00
used zod codemod
This commit is contained in:
@@ -9,13 +9,11 @@ import logger from "@server/logger";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { fromError } from "zod-validation-error";
|
||||
|
||||
const addUserActionSchema = z
|
||||
.object({
|
||||
const addUserActionSchema = z.strictObject({
|
||||
userId: z.string(),
|
||||
actionId: z.string(),
|
||||
orgId: z.string()
|
||||
})
|
||||
.strict();
|
||||
});
|
||||
|
||||
export async function addUserAction(
|
||||
req: Request,
|
||||
|
||||
Reference in New Issue
Block a user