|
|
@ -331,19 +331,35 @@ export class AdminService {
|
|
|
|
symbol,
|
|
|
|
symbol,
|
|
|
|
symbolMapping
|
|
|
|
symbolMapping
|
|
|
|
}: Prisma.SymbolProfileUpdateInput & UniqueAsset) {
|
|
|
|
}: Prisma.SymbolProfileUpdateInput & UniqueAsset) {
|
|
|
|
await this.symbolProfileService.updateSymbolProfile({
|
|
|
|
const updatedSymbolProfile: Prisma.SymbolProfileUpdateInput & UniqueAsset =
|
|
|
|
|
|
|
|
{
|
|
|
|
assetClass,
|
|
|
|
assetClass,
|
|
|
|
assetSubClass,
|
|
|
|
assetSubClass,
|
|
|
|
comment,
|
|
|
|
comment,
|
|
|
|
countries,
|
|
|
|
countries,
|
|
|
|
currency,
|
|
|
|
currency,
|
|
|
|
dataSource,
|
|
|
|
dataSource,
|
|
|
|
name,
|
|
|
|
|
|
|
|
scraperConfiguration,
|
|
|
|
scraperConfiguration,
|
|
|
|
sectors,
|
|
|
|
sectors,
|
|
|
|
symbol,
|
|
|
|
symbol,
|
|
|
|
symbolMapping
|
|
|
|
symbolMapping,
|
|
|
|
});
|
|
|
|
...(dataSource === 'MANUAL'
|
|
|
|
|
|
|
|
? { name }
|
|
|
|
|
|
|
|
: {
|
|
|
|
|
|
|
|
SymbolProfileOverrides: {
|
|
|
|
|
|
|
|
upsert: {
|
|
|
|
|
|
|
|
create: {
|
|
|
|
|
|
|
|
name: name as string
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
update: {
|
|
|
|
|
|
|
|
name: name as string
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.symbolProfileService.updateSymbolProfile(updatedSymbolProfile);
|
|
|
|
|
|
|
|
|
|
|
|
const [symbolProfile] = await this.symbolProfileService.getSymbolProfiles([
|
|
|
|
const [symbolProfile] = await this.symbolProfileService.getSymbolProfiles([
|
|
|
|
{
|
|
|
|
{
|
|
|
|