Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihanChen821 committed Apr 25, 2024
1 parent 11982e6 commit 340a459
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/ai/src/server/trpc/route/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ export function clusterExist(clusterId: string) {
}

export const booleanQueryParam =
() => z.union([z.literal("true"), z.literal("false")]).transform((arg) => Boolean(arg));
() => z.union([z.literal("true"), z.literal("false")]).transform((arg) =>
arg === "true",
);

0 comments on commit 340a459

Please sign in to comment.