Skip to content

Commit

Permalink
chore(tracing-internal): Fix eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Jul 12, 2023
1 parent 192b956 commit 3567690
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/tracing-internal/src/node/integrations/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export class Prisma implements Integration {
// https://github.com/getsentry/sentry-javascript/issues/7216#issuecomment-1602375012
// In the future we might explore providing a dedicated PrismaClient middleware instead of this hack.
if (isValidPrismaClient(options.client) && !options.client._sentryInstrumented) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
addNonEnumerableProperty(options.client as any, '_sentryInstrumented', true);

options.client.$use((params, next: (params: PrismaMiddlewareParams) => Promise<unknown>) => {
Expand Down

0 comments on commit 3567690

Please sign in to comment.