diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 6856fb3..9e31755 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -45,7 +45,6 @@ jobs: env: SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} SUPABASE_URL: ${{ secrets.SUPABASE_URL }} - NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.NEXT_PUBLIC_SENTRY_DSN }} steps: - uses: actions/checkout@v2 - uses: pnpm/action-setup@v2 diff --git a/app/api/mikado-graph/mikado-graph.infra.ts b/app/api/mikado-graph/mikado-graph.infra.ts index 4c228e7..655ccd9 100644 --- a/app/api/mikado-graph/mikado-graph.infra.ts +++ b/app/api/mikado-graph/mikado-graph.infra.ts @@ -74,12 +74,13 @@ export class SupabaseMikadoGraphs implements MikadoGraphs { .eq('mikado_graph_id', id) .single(); - Sentry.captureMessage('Mikado graph loaded from Supabase', { extra: { data } }); - if (!data) { throw UnknownMikadoGraph.fromId(id); } + data.aggregate.prerequisite.forEach((prerequisite) => { + Sentry.captureMessage('Mikado graph loaded from Supabase', { extra: { prerequisite } }); + }); return MikadoGraph.fromState(data.aggregate); } }