Skip to content

Commit

Permalink
HOTFIX - fix community gets
Browse files Browse the repository at this point in the history
  • Loading branch information
ebmm01 committed Oct 22, 2021
1 parent 145fbcd commit dbae532
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/comunidade/comunidade.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,6 @@ export class ComunidadeController {
);
}

@Get(':id')
public async getCommunity(@Param('id') id: string): Promise<Community> {
return firstValueFrom<Community>(
this.comunidadeServiceClient
.send('getCommunity', id)
.pipe(timeout(TEN_SECONDS)),
);
}

@Get('listCommunities')
public async listCommunities(): Promise<Community[]> {
return firstValueFrom<Community[]>(
Expand All @@ -234,4 +225,13 @@ export class ComunidadeController {
.pipe(timeout(TEN_SECONDS)),
);
}

@Get(':id')
public async getCommunity(@Param('id') id: string): Promise<Community> {
return firstValueFrom<Community>(
this.comunidadeServiceClient
.send('getCommunity', id)
.pipe(timeout(TEN_SECONDS)),
);
}
}
4 changes: 2 additions & 2 deletions test/comunidade/comunidade.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ describe('ComunidadeController', () => {
});
});

it('should be defined',async () => {
it('should be defined', async () => {
const module = await customModule(jest.fn());

controller = module.get<ComunidadeController>(ComunidadeController);

expect(controller).toBeDefined();
Expand Down

0 comments on commit dbae532

Please sign in to comment.