Skip to content

Commit

Permalink
fix: remove sentry test
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Jan 26, 2025
1 parent bc4a264 commit 3268624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ignore:
- supabase/tests/**
- tests/**
- scriptable/**
- scripts/**
7 changes: 0 additions & 7 deletions cloudflare_workers/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,6 @@ appTriggers.route('/cron_plan', cron_plan)
app.route('/triggers', appTriggers)
app.route('/private', appFront)

app.get('/test_sentry', (c) => {
if (Math.random() < 0.5)
return c.text('Success!')

throw new Error('Failed!')
})

app.onError((e, c) => {
c.get('sentry').captureException(e)
if (e instanceof HTTPException) {
Expand Down

0 comments on commit 3268624

Please sign in to comment.