diff options
author | Miodec <[email protected]> | 2024-08-12 14:35:02 +0200 |
---|---|---|
committer | Miodec <[email protected]> | 2024-08-12 14:35:02 +0200 |
commit | 11d228f2f49d348e5dfa3d80c508b5f1f6235bfa (patch) | |
tree | c908dca61d786964fc7f9a850a0ab6a3da87b84a | |
parent | f4e23cd659f5f04e6e46ff2fb246f27f154e11bb (diff) | |
download | monkeytype-11d228f2f49d348e5dfa3d80c508b5f1f6235bfa.tar.gz monkeytype-11d228f2f49d348e5dfa3d80c508b5f1f6235bfa.zip |
id schema
-rw-r--r-- | packages/contracts/src/schemas/users.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/contracts/src/schemas/users.ts b/packages/contracts/src/schemas/users.ts index 1e6d3fef6..fbdcb24c9 100644 --- a/packages/contracts/src/schemas/users.ts +++ b/packages/contracts/src/schemas/users.ts @@ -1,7 +1,8 @@ import { z } from "zod"; +import { IdSchema } from "./util"; export const ResultFiltersSchema = z.object({ - _id: z.string(), + _id: IdSchema, name: z.string(), pb: z.object({ no: z.boolean(), |