|
@ -87,7 +87,7 @@ export class AccountController { |
|
|
@UseInterceptors(RedactValuesInResponseInterceptor) |
|
|
@UseInterceptors(RedactValuesInResponseInterceptor) |
|
|
@UseInterceptors(TransformDataSourceInRequestInterceptor) |
|
|
@UseInterceptors(TransformDataSourceInRequestInterceptor) |
|
|
public async getAllAccounts( |
|
|
public async getAllAccounts( |
|
|
@Headers(HEADER_KEY_IMPERSONATION.toLowerCase()) impersonationId, |
|
|
@Headers(HEADER_KEY_IMPERSONATION.toLowerCase()) impersonationId: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('dataSource') filterByDataSource?: string, |
|
|
@Query('symbol') filterBySymbol?: string |
|
|
@Query('symbol') filterBySymbol?: string |
|
|
): Promise<AccountsResponse> { |
|
|
): Promise<AccountsResponse> { |
|
@ -110,7 +110,7 @@ export class AccountController { |
|
|
@UseGuards(AuthGuard('jwt'), HasPermissionGuard) |
|
|
@UseGuards(AuthGuard('jwt'), HasPermissionGuard) |
|
|
@UseInterceptors(RedactValuesInResponseInterceptor) |
|
|
@UseInterceptors(RedactValuesInResponseInterceptor) |
|
|
public async getAccountById( |
|
|
public async getAccountById( |
|
|
@Headers(HEADER_KEY_IMPERSONATION.toLowerCase()) impersonationId, |
|
|
@Headers(HEADER_KEY_IMPERSONATION.toLowerCase()) impersonationId: string, |
|
|
@Param('id') id: string |
|
|
@Param('id') id: string |
|
|
): Promise<AccountWithValue> { |
|
|
): Promise<AccountWithValue> { |
|
|
const impersonationUserId = |
|
|
const impersonationUserId = |
|
|