|
|
@ -9,13 +9,11 @@ import { ImpersonationService } from '@ghostfolio/api/services/impersonation/imp |
|
|
import { HEADER_KEY_IMPERSONATION } from '@ghostfolio/common/config'; |
|
|
import { HEADER_KEY_IMPERSONATION } from '@ghostfolio/common/config'; |
|
|
import { |
|
|
import { |
|
|
AccountBalancesResponse, |
|
|
AccountBalancesResponse, |
|
|
|
|
|
AccountResponse, |
|
|
AccountsResponse |
|
|
AccountsResponse |
|
|
} from '@ghostfolio/common/interfaces'; |
|
|
} from '@ghostfolio/common/interfaces'; |
|
|
import { permissions } from '@ghostfolio/common/permissions'; |
|
|
import { permissions } from '@ghostfolio/common/permissions'; |
|
|
import type { |
|
|
import type { RequestWithUser } from '@ghostfolio/common/types'; |
|
|
AccountWithValue, |
|
|
|
|
|
RequestWithUser |
|
|
|
|
|
} from '@ghostfolio/common/types'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
Body, |
|
|
Body, |
|
|
@ -114,7 +112,7 @@ export class AccountController { |
|
|
public async getAccountById( |
|
|
public async getAccountById( |
|
|
@Headers(HEADER_KEY_IMPERSONATION.toLowerCase()) impersonationId: string, |
|
|
@Headers(HEADER_KEY_IMPERSONATION.toLowerCase()) impersonationId: string, |
|
|
@Param('id') id: string |
|
|
@Param('id') id: string |
|
|
): Promise<AccountWithValue> { |
|
|
): Promise<AccountResponse> { |
|
|
const impersonationUserId = |
|
|
const impersonationUserId = |
|
|
await this.impersonationService.validateImpersonationId(impersonationId); |
|
|
await this.impersonationService.validateImpersonationId(impersonationId); |
|
|
|
|
|
|
|
|
|