From 754eded4201fabac0a6b5b6d32da834a154c0f84 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Wed, 11 Dec 2024 19:51:10 -0800 Subject: [PATCH] Fix schema --- common/src/api/schema.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/common/src/api/schema.ts b/common/src/api/schema.ts index 105e542781..cc136edbe9 100644 --- a/common/src/api/schema.ts +++ b/common/src/api/schema.ts @@ -1914,7 +1914,6 @@ export const API = (_apiTypeCheck = { userId: z.string(), }), }, - 'create-task': { method: 'POST', visibility: 'public', @@ -1987,7 +1986,7 @@ export const API = (_apiTypeCheck = { authed: true, returns: {} as { tasks: Task[] }, props: z.object({}).strict(), - + }, 'get-site-activity': { method: 'GET', visibility: 'public', @@ -1998,13 +1997,14 @@ export const API = (_apiTypeCheck = { newContracts: Contract[] relatedContracts: Contract[] }, - props: z.object({ - limit: z.coerce.number().default(10), - blockedUserIds: z.array(z.string()).optional(), - blockedGroupSlugs: z.array(z.string()).optional(), - blockedContractIds: z.array(z.string()).optional(), - }).strict(), - + props: z + .object({ + limit: z.coerce.number().default(10), + blockedUserIds: z.array(z.string()).optional(), + blockedGroupSlugs: z.array(z.string()).optional(), + blockedContractIds: z.array(z.string()).optional(), + }) + .strict(), }, } as const)