Skip to content
Prev Previous commit
try to fix lint and support v23
  • Loading branch information
nicohrubec committed Mar 11, 2026
commit 0d33b0f9f70b90374c4448a98151dba1353b502b
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { captureException, isThenable, SDK_VERSION, withIsolationScope } from '@sentry/core';
import type { ScheduleDecoratorTarget } from './types';

const supportedVersions = ['>=4.0.0'];
const supportedVersions = ['>=2.0.0'];
const COMPONENT = '@nestjs/schedule';

/**
Expand Down Expand Up @@ -117,8 +117,8 @@ export class SentryNestScheduleInstrumentation extends InstrumentationBase {
return decoratorResult(target, propertyKey, descriptor);
}

const originalHandler = descriptor.value;
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const originalHandler: (...handlerArgs: unknown[]) => unknown = descriptor.value;
const handlerName = originalHandler.name || propertyKey;

// Not using async/await here to avoid changing the return type of sync handlers.
Expand Down
Loading