|
|
@ -672,13 +672,11 @@ export class PortfolioController { |
|
|
@UseGuards(AuthGuard('jwt'), HasPermissionGuard) |
|
|
@UseGuards(AuthGuard('jwt'), HasPermissionGuard) |
|
|
public async updateHoldingTags( |
|
|
public async updateHoldingTags( |
|
|
@Body() data: UpdateHoldingTagsDto, |
|
|
@Body() data: UpdateHoldingTagsDto, |
|
|
@Headers(HEADER_KEY_IMPERSONATION.toLowerCase()) impersonationId: string, |
|
|
|
|
|
@Param('dataSource') dataSource: DataSource, |
|
|
@Param('dataSource') dataSource: DataSource, |
|
|
@Param('symbol') symbol: string |
|
|
@Param('symbol') symbol: string |
|
|
): Promise<void> { |
|
|
): Promise<void> { |
|
|
const holding = await this.portfolioService.getHolding({ |
|
|
const holding = await this.portfolioService.getHolding({ |
|
|
dataSource, |
|
|
dataSource, |
|
|
impersonationId, |
|
|
|
|
|
symbol, |
|
|
symbol, |
|
|
userId: this.request.user.id |
|
|
userId: this.request.user.id |
|
|
}); |
|
|
}); |
|
|
@ -692,7 +690,6 @@ export class PortfolioController { |
|
|
|
|
|
|
|
|
await this.portfolioService.updateTags({ |
|
|
await this.portfolioService.updateTags({ |
|
|
dataSource, |
|
|
dataSource, |
|
|
impersonationId, |
|
|
|
|
|
symbol, |
|
|
symbol, |
|
|
tags: data.tags, |
|
|
tags: data.tags, |
|
|
userId: this.request.user.id |
|
|
userId: this.request.user.id |
|
|
|