Browse Source

fix: build process

pull/4469/head
tobikugel 3 weeks ago
parent
commit
0990d461c9
  1. 4
      apps/api/src/app/admin/admin.controller.ts
  2. 8
      apps/api/src/app/admin/admin.service.ts
  3. 12
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

4
apps/api/src/app/admin/admin.controller.ts

@ -340,9 +340,7 @@ export class AdminController {
): Promise<EnhancedSymbolProfile> {
return this.adminService.patchAssetProfileData(
{ dataSource, symbol },
{
...assetProfile
}
assetProfile
);
}

8
apps/api/src/app/admin/admin.service.ts

@ -522,7 +522,7 @@ export class AdminService {
) {
const [assetProfile] = await this.symbolProfileService.getSymbolProfiles([
{
dataSource: newDataSource as DataSource,
dataSource: DataSource[newDataSource.toString()],
symbol: newSymbol as string
}
]);
@ -542,7 +542,7 @@ export class AdminService {
symbol
},
{
dataSource: newDataSource as DataSource,
dataSource: DataSource[newDataSource.toString()],
symbol: newSymbol as string
}
),
@ -552,7 +552,7 @@ export class AdminService {
symbol
},
{
dataSource: newDataSource as DataSource,
dataSource: DataSource[newDataSource.toString()],
symbol: newSymbol as string
}
)
@ -560,7 +560,7 @@ export class AdminService {
return this.symbolProfileService.getSymbolProfiles([
{
dataSource: newDataSource as DataSource,
dataSource: DataSource[newDataSource.toString()],
symbol: newSymbol as string
}
])?.[0];

12
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

@ -349,9 +349,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
dataSource: this.data.dataSource,
symbol: this.data.symbol
},
{
...assetProfileIdentifier
}
assetProfileIdentifier
)
.pipe(
catchError((error: HttpErrorResponse) => {
@ -435,7 +433,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
);
} catch {}
const assetProfileData: UpdateAssetProfileDto = {
const assetProfile: UpdateAssetProfileDto = {
countries,
scraperConfiguration,
sectors,
@ -452,7 +450,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
await validateObjectForForm({
classDto: UpdateAssetProfileDto,
form: this.assetProfileForm,
object: assetProfileData
object: assetProfile
});
} catch (error) {
console.error(error);
@ -465,9 +463,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
dataSource: this.data.dataSource,
symbol: this.data.symbol
},
{
...assetProfileData
}
assetProfile
)
.subscribe(() => {
this.initialize();

Loading…
Cancel
Save