Skip to content

Commit

Permalink
fix sentry deplyoment
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Oct 13, 2024
1 parent 31e4587 commit 8485ee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion workers/faAutopost/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require('./telemetry');
import 'telemetry';

import { Login, Submissions, removeFromInbox, unwatchAuthor } from 'furaffinity-api';

Expand Down
7 changes: 2 additions & 5 deletions workers/faAutopost/telemetry.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const Sentry = require('@sentry/node');
import { init } from '@sentry/node';

const packageFile = require('./package.json');

Sentry.init({
init({
dsn: process.env.sentryLink,
enabled: !!process.env.sentryLink,
release: packageFile.version,
});

0 comments on commit 8485ee3

Please sign in to comment.