Browse Source

Address review feedback

pull/8486/head
KenTandrian 14 hours ago
parent
commit
233ddeb266
  1. 2
      apps/api/src/app/endpoints/accounts/accounts.controller.ts
  2. 2
      libs/common/src/lib/interfaces/asset-profile-item.interface.ts

2
apps/api/src/app/endpoints/accounts/accounts.controller.ts

@ -73,7 +73,7 @@ export class AccountsController {
{ activities: true } { activities: true }
); );
if (!account || (account.activities?.length ?? 0) > 0) { if (!account?.activities || account.activities.length > 0) {
throw new HttpException( throw new HttpException(
getReasonPhrase(StatusCodes.FORBIDDEN), getReasonPhrase(StatusCodes.FORBIDDEN),
StatusCodes.FORBIDDEN StatusCodes.FORBIDDEN

2
libs/common/src/lib/interfaces/asset-profile-item.interface.ts

@ -23,7 +23,7 @@ export interface AssetProfileItem {
isUsedByUsersWithSubscription?: boolean; isUsedByUsersWithSubscription?: boolean;
lastMarketPrice?: number; lastMarketPrice?: number;
marketDataItemCount: number; marketDataItemCount: number;
name?: string | null; name: string | null;
sectorsCount: number; sectorsCount: number;
symbol: string; symbol: string;
watchedByCount: number; watchedByCount: number;

Loading…
Cancel
Save