Skip to content

Commit e6bc2ee

Browse files
committed
Fix build
1 parent 01bfb16 commit e6bc2ee

4 files changed

Lines changed: 18 additions & 16 deletions

File tree

app/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"devDependencies": {
3232
"@types/cors": "^2.8.17",
3333
"@types/express": "^4.17.21",
34-
"@types/node": "^20.10.6",
34+
"@types/node": "^22.18.6",
3535
"prisma": "^5.7.1",
3636
"tsx": "^4.7.0",
3737
"typescript": "^5.3.3"

app/backend/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ export const router = os.router({
3131
const handler = new RPCHandler(router, {
3232
interceptors: [
3333
onError((error) => {
34-
if (error instanceof Error) {
35-
console.error(JSON.stringify(error.cause, null, 2));
36-
} else {
37-
console.error(error);
38-
}
34+
console.error(error);
3935
}),
4036
],
4137
});

app/frontend/src/pages/PartyLikeness.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useId, useMemo, useState } from "react";
2+
import { z } from "zod";
23
import {
34
Card,
45
CardContent,
@@ -13,8 +14,14 @@ import {
1314
usePartyFocus,
1415
usePartyLikenessMatrix,
1516
} from "../hooks/api";
16-
import type { MotionCategory, Party } from "../lib/api";
17-
import { formatPercentage, getPartyColorClass } from "../lib/utils";
17+
import type { Party } from "../lib/api";
18+
import { formatPercentage } from "../lib/utils";
19+
20+
const FilterSchema = z.object({
21+
dateFrom: z.date().optional(),
22+
dateTo: z.date().optional(),
23+
});
24+
type Filter = z.infer<typeof FilterSchema>;
1825

1926
const cabinetPresets = {
2027
"schoof-i": {
@@ -175,7 +182,7 @@ function LikenessMatrix({
175182
filters,
176183
}: {
177184
parties: Party[];
178-
filters: { dateFrom?: Date; dateTo?: Date };
185+
filters: Filter;
179186
}) {
180187
const { data: likenessData, isLoading } = usePartyLikenessMatrix(filters);
181188

@@ -276,7 +283,7 @@ function PartyFocusTab({
276283
}: {
277284
partyId: string;
278285
parties: Party[];
279-
filters: any;
286+
filters: Filter;
280287
}) {
281288
const { data: focusData, isLoading: isLoadingFocus } = usePartyFocus(
282289
partyId,

app/package-lock.json

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)