Skip to content

Commit 70faf49

Browse files
authored
Update Zod api call (#298)
Zod native Enum to Enum for Zod v4 upgrade
1 parent 93ec6ff commit 70faf49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/routes/logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const logsPlugin: FastifyPluginAsync = async (fastify, _options) => {
4545
}),
4646
params: z.object({
4747
module: z
48-
.nativeEnum(Modules)
48+
.enum(Modules)
4949
.meta({ description: "Module to get audit logs for." }),
5050
}),
5151
summary: "Retrieve audit logs for a module.",

0 commit comments

Comments
 (0)