Skip to content

Commit

Permalink
Merge pull request #54 from Samagra-Development/53-be-get-apiuseruser…
Browse files Browse the repository at this point in the history
…id-is-responding-with-wrong-result-set

BUG FIX; GET /api/user/:userId had wrong query specified causing wron…
  • Loading branch information
choxx authored Feb 1, 2023
2 parents ee38540 + 001a4ac commit 6022dcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/api.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,9 @@ export class ApiController {
@Headers('authorization') authHeader,
@Headers('x-application-id') applicationId,
): Promise<UsersResponse> {
const queryString = `(id: ${userId})`; // pass the strict user ID filter
return await this.apiService.fetchUsersByString(
userId,
queryString,
undefined,
undefined,
applicationId,
Expand Down

0 comments on commit 6022dcb

Please sign in to comment.