From 959dccb474bd98f7da08008399818af0c421f52c Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Tue, 10 Jan 2023 01:00:06 +0200 Subject: [PATCH] Team fixes --- app/db/seed.ts | 6 +++--- app/routes/u.$identifier/index.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/db/seed.ts b/app/db/seed.ts index 0ed240847..17c17f180 100644 --- a/app/db/seed.ts +++ b/app/db/seed.ts @@ -879,10 +879,10 @@ function detailedTeam() { sql .prepare( /* sql */ ` - insert into "UnvalidatedUserSubmittedImage" ("validatedAt", "url") + insert into "UnvalidatedUserSubmittedImage" ("validatedAt", "url", "submitterUserId") values - (1672587342, 'AiGSM5T-cxm6BFGT7N_lA-1673297699133.webp'), - (1672587342, 'jTbWd95klxU2MzGFIdi1c-1673297932788.webp') + (1672587342, 'AiGSM5T-cxm6BFGT7N_lA-1673297699133.webp', 1), + (1672587342, 'jTbWd95klxU2MzGFIdi1c-1673297932788.webp', 1) ` ) .run(); diff --git a/app/routes/u.$identifier/index.tsx b/app/routes/u.$identifier/index.tsx index 07f1df30a..d05e83b0c 100644 --- a/app/routes/u.$identifier/index.tsx +++ b/app/routes/u.$identifier/index.tsx @@ -14,7 +14,7 @@ import { type SendouRouteHandle } from "~/utils/remix"; import { rawSensToString } from "~/utils/strings"; import type { Unpacked } from "~/utils/types"; import { assertUnreachable } from "~/utils/types"; -import { teamPage } from "~/utils/urls"; +import { teamPage, userSubmittedImage } from "~/utils/urls"; import { badgeExplanationText } from "../badges/$id"; import type { UserPageLoaderData } from "../u.$identifier"; @@ -73,7 +73,7 @@ function TeamInfo() { {team.avatarUrl ? (