Skip to content

Commit 1503317

Browse files
committed
updates
1 parent 53aa3a9 commit 1503317

5 files changed

Lines changed: 161 additions & 167 deletions

File tree

‎apps/webapp/app/routes/login._index/route.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ import { cn } from "~/utils/cn";
3838
// format validation in the browser and renders the styled inline error.
3939
// Server-side errors still surface via the session-backed authError below.
4040
const emailSchema = z.object({
41-
email: z
42-
.string({ required_error: "Enter your email address" })
43-
.email("Enter a valid email address"),
41+
email: z.string({ error: "Enter your email address" }).email("Enter a valid email address"),
4442
});
4543

4644
function LastUsedBadge({ className }: { className?: string }) {

‎apps/webapp/app/routes/login.sso/route.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const ERROR_MESSAGES: Record<string, string> = {
6767
// inline error before submit. Server-side errors keep flowing via ?error=.
6868
const ssoEmailSchema = z.object({
6969
email: z
70-
.string({ required_error: "Enter your enterprise email address" })
70+
.string({ error: "Enter your enterprise email address" })
7171
.email("Enter a valid email address"),
7272
});
7373

‎apps/webapp/app/services/queryService.server.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ export async function executeQuery<TOut extends z.ZodSchema>(
382382

383383
const result = await executeTSQL(queryClickhouse.reader, {
384384
...baseOptions,
385-
schema: z.record(z.string(), z.any()),
385+
schema: z.record(z.string(), z.any()) as unknown as TOut,
386386
tableSchema: effectiveSchemas,
387387
transformValues: true,
388388
enforcedWhereClause,

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"@jsonhero/json-infer-types>ip-address": "^10.3.1",
144144
"express-rate-limit>ip-address": "^10.3.1",
145145
"find-my-way@>=9 <9.7.0": "^9.7.0",
146-
"@modelcontextprotocol/sdk@>=1.26.0>express-rate-limit": "^8.6.0"
146+
"@modelcontextprotocol/sdk@>=1.26.0>express-rate-limit": "^8.6.0",
147147
"zod": "4.4.3"
148148
},
149149
"onlyBuiltDependencies": [

0 commit comments

Comments
 (0)