From 64fce822b185e0abb4ecf1029a631639cd2997d5 Mon Sep 17 00:00:00 2001 From: Tejas Mehta Date: Sat, 30 Mar 2024 11:27:26 -0400 Subject: [PATCH] fix service def --- packages/logging-service/src/app.service.ts | 25 ++------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/packages/logging-service/src/app.service.ts b/packages/logging-service/src/app.service.ts index f9b203dc..7263d33a 100644 --- a/packages/logging-service/src/app.service.ts +++ b/packages/logging-service/src/app.service.ts @@ -1,25 +1,4 @@ -import { Inject, Injectable, OnModuleInit } from '@nestjs/common'; -import { ClientGrpc } from '@nestjs/microservices'; -import { Observable } from 'rxjs'; - -interface LoggingService { - recordError(errorLogRequest: { message: string }): Observable; -} +import { Injectable } from '@nestjs/common'; @Injectable() -export class AppService implements OnModuleInit { - private loggingService: LoggingService; - - constructor(@Inject('LOGGING_SERVICE') private client: ClientGrpc) {} - - onModuleInit() { - this.loggingService = - this.client.getService('LoggingService'); - } - - // eslint-disable-next-line @typescript-eslint/no-unused-vars - recordError(message: string) { - // TODO: currently doing nothing here, but want to actually log the error - return; - } -} +export class AppService {}