Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
miniflycn committed Jul 16, 2022
1 parent a432b3a commit dd513a2
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions data-processor/src/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Controller, Get, Param, Inject, Query } from '@nestjs/common';
import { Controller, Get, Inject, Query } from '@nestjs/common';
import {
ClientGrpc,
} from '@nestjs/microservices';
import { type } from 'os';
import { off } from 'process';
import { Observable, merge, of } from 'rxjs';
import { reduce, catchError } from 'rxjs/operators';
import { ActivityResponse, ActivityService, MultiActivity } from './interface/activity.interface'
Expand All @@ -16,14 +14,7 @@ interface ResponseError {
}

class GRPCResponseError implements ResponseError {
code: number;
message: string;
id: string;
constructor (code: number, message: string, id: string) {
this.code = code;
this.message = message;
this.id = id
}
constructor (public code: number, public message: string, public id: string) {}
}

interface MultiActivityResponse {
Expand Down

0 comments on commit dd513a2

Please sign in to comment.