Skip to content

Commit 64c336a

Browse files
committed
updates
1 parent cffb512 commit 64c336a

5 files changed

Lines changed: 158 additions & 164 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
@@ -383,7 +383,7 @@ export async function executeQuery<TOut extends z.ZodSchema>(
383383

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
"brace-expansion@>=2 <2.0.3": "2.0.3",
143143
"brace-expansion@>=5 <5.0.6": "5.0.6",
144144
"@jsonhero/json-infer-types>ip-address": "^10.2.0",
145-
"@modelcontextprotocol/sdk@>=1.26.0>express-rate-limit": "^8.6.0"
145+
"@modelcontextprotocol/sdk@>=1.26.0>express-rate-limit": "^8.6.0",
146146
"zod": "4.4.3"
147147
},
148148
"onlyBuiltDependencies": [

0 commit comments

Comments
 (0)