NestJS - Interceptors
Examine this TimeoutInterceptor snippet. What is the main issue that would cause it to fail?
import { Injectable, NestInterceptor } from '@nestjs/common';
import { timeout } from 'rxjs/operators';
@Injectable()
export class TimeoutInterceptor implements NestInterceptor {
intercept(context, next) {
return next.handle().pipe(
timeout(-5000)
);
}
}