From 7416dbcc48b22d88874ad551e2ba45cc343a1843 Mon Sep 17 00:00:00 2001 From: AmruthVamshi Date: Thu, 12 Dec 2024 15:47:34 +0530 Subject: [PATCH] fix: added node-fetch --- package.json | 1 + src/telemetry/telemetry.service.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 21d8ed4..279926c 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "ioredis": "^5.4.1", "jsonwebtoken": "^9.0.2", "jwks-rsa": "^3.1.0", + "node-fetch": "^3.3.2", "passport": "^0.5.2", "passport-http": "^0.3.0", "passport-jwt": "^4.0.1", diff --git a/src/telemetry/telemetry.service.ts b/src/telemetry/telemetry.service.ts index ee6ea0f..7c85086 100644 --- a/src/telemetry/telemetry.service.ts +++ b/src/telemetry/telemetry.service.ts @@ -1,5 +1,6 @@ import { HttpException, HttpStatus, Injectable, Logger } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; +import fetch, { Headers } from 'node-fetch'; @Injectable() export class TelemetryService {