Openstatus www.openstatus.dev

fix: workspace id (#544)

authored by

Maximilian Kaske and committed by
GitHub
7eb208ed 8d8b6a30

+3 -3
+1 -2
apps/web/src/app/status-page/[domain]/layout.tsx
··· 50 50 width={28} 51 51 src={page.icon} 52 52 alt={page.title} 53 - objectFit="cover" 54 - className="rounded-full" 53 + className="object-cover" 55 54 /> 56 55 </div> 57 56 ) : null}
+1
apps/web/src/components/tracker.tsx
··· 202 202 {reports?.map((report) => ( 203 203 <li key={report.id} className="text-muted-foreground text-sm"> 204 204 <Link 205 + // TODO: include setPrefixUrl for local development 205 206 href={`./incidents/${report.id}`} 206 207 className="hover:text-foreground group flex items-center justify-between gap-2" 207 208 >
+1 -1
packages/api/src/router/statusReport.ts
··· 398 398 const _statusReport = await opts.ctx.db.query.statusReport.findFirst({ 399 399 where: and( 400 400 eq(statusReport.id, opts.input.id), 401 - eq(statusReport.workspaceId, result.id), 401 + eq(statusReport.workspaceId, result.workspaceId), 402 402 ), 403 403 with: { 404 404 monitorsToStatusReports: { with: { monitor: true } },