Team fixes

This commit is contained in:
Kalle
2023-01-10 01:00:06 +02:00
parent 65bd4561e3
commit 959dccb474
2 changed files with 5 additions and 5 deletions

View File

@@ -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();

View File

@@ -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 ? (
<img
alt=""
src={team.avatarUrl}
src={userSubmittedImage(team.avatarUrl)}
width={24}
height={24}
className="rounded-full"