Skip to content

Commit

Permalink
chore: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
arnolanglade committed Oct 30, 2023
1 parent 6f9f84b commit ad1f68a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions app/api/mikado-graph/mikado-graph.infra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit ad1f68a

Please sign in to comment.