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> { ): Promise<EnhancedSymbolProfile> {
return this.adminService.patchAssetProfileData( return this.adminService.patchAssetProfileData(
{ dataSource, symbol }, { 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([ const [assetProfile] = await this.symbolProfileService.getSymbolProfiles([
{ {
dataSource: newDataSource as DataSource, dataSource: DataSource[newDataSource.toString()],
symbol: newSymbol as string symbol: newSymbol as string
} }
]); ]);
@ -542,7 +542,7 @@ export class AdminService {
symbol symbol
}, },
{ {
dataSource: newDataSource as DataSource, dataSource: DataSource[newDataSource.toString()],
symbol: newSymbol as string symbol: newSymbol as string
} }
), ),
@ -552,7 +552,7 @@ export class AdminService {
symbol symbol
}, },
{ {
dataSource: newDataSource as DataSource, dataSource: DataSource[newDataSource.toString()],
symbol: newSymbol as string symbol: newSymbol as string
} }
) )
@ -560,7 +560,7 @@ export class AdminService {
return this.symbolProfileService.getSymbolProfiles([ return this.symbolProfileService.getSymbolProfiles([
{ {
dataSource: newDataSource as DataSource, dataSource: DataSource[newDataSource.toString()],
symbol: newSymbol as string symbol: newSymbol as string
} }
])?.[0]; ])?.[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, dataSource: this.data.dataSource,
symbol: this.data.symbol symbol: this.data.symbol
}, },
{ assetProfileIdentifier
...assetProfileIdentifier
}
) )
.pipe( .pipe(
catchError((error: HttpErrorResponse) => { catchError((error: HttpErrorResponse) => {
@ -435,7 +433,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
); );
} catch {} } catch {}
const assetProfileData: UpdateAssetProfileDto = { const assetProfile: UpdateAssetProfileDto = {
countries, countries,
scraperConfiguration, scraperConfiguration,
sectors, sectors,
@ -452,7 +450,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
await validateObjectForForm({ await validateObjectForForm({
classDto: UpdateAssetProfileDto, classDto: UpdateAssetProfileDto,
form: this.assetProfileForm, form: this.assetProfileForm,
object: assetProfileData object: assetProfile
}); });
} catch (error) { } catch (error) {
console.error(error); console.error(error);
@ -465,9 +463,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
dataSource: this.data.dataSource, dataSource: this.data.dataSource,
symbol: this.data.symbol symbol: this.data.symbol
}, },
{ assetProfile
...assetProfileData
}
) )
.subscribe(() => { .subscribe(() => {
this.initialize(); this.initialize();

Loading…
Cancel
Save