From 7eb208ed2a87a80cbd2208f926d9a228b2fdb94e Mon Sep 17 00:00:00 2001 From: Maximilian Kaske <56969857+mxkaske@users.noreply.github.com> Date: Fri, 22 Dec 2023 20:54:09 +0100 Subject: [PATCH] fix: workspace id (#544) --- apps/web/src/app/status-page/[domain]/layout.tsx | 3 +-- apps/web/src/components/tracker.tsx | 1 + packages/api/src/router/statusReport.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/status-page/[domain]/layout.tsx b/apps/web/src/app/status-page/[domain]/layout.tsx index e03fb098..835eb8fe 100644 --- a/apps/web/src/app/status-page/[domain]/layout.tsx +++ b/apps/web/src/app/status-page/[domain]/layout.tsx @@ -50,8 +50,7 @@ export default async function StatusPageLayout({ children, params }: Props) { width={28} src={page.icon} alt={page.title} - objectFit="cover" - className="rounded-full" + className="object-cover" /> ) : null} diff --git a/apps/web/src/components/tracker.tsx b/apps/web/src/components/tracker.tsx index 188d2fbd..301c46cc 100644 --- a/apps/web/src/components/tracker.tsx +++ b/apps/web/src/components/tracker.tsx @@ -202,6 +202,7 @@ const Bar = ({ {reports?.map((report) => (
  • diff --git a/packages/api/src/router/statusReport.ts b/packages/api/src/router/statusReport.ts index 6e66fc5f..9b43f013 100644 --- a/packages/api/src/router/statusReport.ts +++ b/packages/api/src/router/statusReport.ts @@ -398,7 +398,7 @@ export const statusReportRouter = createTRPCRouter({ const _statusReport = await opts.ctx.db.query.statusReport.findFirst({ where: and( eq(statusReport.id, opts.input.id), - eq(statusReport.workspaceId, result.id), + eq(statusReport.workspaceId, result.workspaceId), ), with: { monitorsToStatusReports: { with: { monitor: true } }, -- 2.51.2