Skip to content

Commit

Permalink
Merge branch 'develop' into feature/26-export-kml-data
Browse files Browse the repository at this point in the history
  • Loading branch information
leossb36 committed Nov 4, 2021
2 parents f05ef53 + 26eb678 commit 5e65864
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/mapas/mapas.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
Query,
Body,
Controller,
Delete,
Expand Down Expand Up @@ -51,7 +52,7 @@ export class MapasController {
}

@Get('point')
public async getPoint(@Body('id') id: string): Promise<PointDto> {
public async getPoint(@Query('id') id: string): Promise<PointDto> {
const mapaResponse = await firstValueFrom<PointDto>(
this.mapaServiceClient.send('getPoint', id),
);
Expand Down
3 changes: 2 additions & 1 deletion src/midia/midia.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
Query,
Body,
Controller,
Delete,
Expand Down Expand Up @@ -26,7 +27,7 @@ export class MidiaController {
}

@Post('getUrl')
public async getMidiaUrl(@Body('id') id: string): Promise<string> {
public async getMidiaUrl(@Query('id') id: string): Promise<string> {
const midiaUrl: string = await firstValueFrom(
this.midiaServiceClient.send('getUrl', id).pipe(timeout(TEN_SECONDS)),
);
Expand Down
2 changes: 1 addition & 1 deletion src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class UsersController {
}

@Get('userByEmail')
@Auth('RESEARCHER')
@Auth('RESEARCHER', 'COMMUNITY_MEMBER')
public async getUserByEmail(
@Query('email') userEmai: string,
): Promise<UserResponse> {
Expand Down

0 comments on commit 5e65864

Please sign in to comment.