|
|
@ -59,12 +59,16 @@ export class SymbolProfileService { |
|
|
|
const scraperConfiguration = |
|
|
|
symbolProfile.scraperConfiguration as Prisma.JsonObject; |
|
|
|
|
|
|
|
if (scraperConfiguration) { |
|
|
|
return { |
|
|
|
selector: scraperConfiguration.selector as string, |
|
|
|
url: scraperConfiguration.url as string |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
private getSectors(symbolProfile: SymbolProfile): Sector[] { |
|
|
|
return ((symbolProfile?.sectors as Prisma.JsonArray) ?? []).map( |
|
|
|
(sector) => { |
|
|
|