small update
This commit is contained in:
parent
efc734ca9e
commit
28b9822d55
3 changed files with 5 additions and 47 deletions
|
|
@ -32,23 +32,9 @@ export async function updateCeoChannels(
|
|||
const totalChannels = results.channel_categories[0].total_channels;
|
||||
const totalPages = Math.ceil(totalChannels / channels.length);
|
||||
const exchanges: { exchange: string; countryCode: string }[] = [];
|
||||
interface Channel {
|
||||
symbol: string;
|
||||
exchange: string;
|
||||
title: string;
|
||||
type: string;
|
||||
channel: string;
|
||||
spiel_count: number;
|
||||
unread_count: number;
|
||||
is_following: boolean;
|
||||
last_viewed_timestamp: string;
|
||||
last_timestamp: string;
|
||||
company_details?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
const symbols = channels.map((channel: Channel) => {
|
||||
const symbols = channels.map((channel: any) => {
|
||||
// check if exchange is in the exchanges array object
|
||||
if (!exchanges.find((e) => e.exchange === channel.exchange)) {
|
||||
if (!exchanges.find((e: any) => e.exchange === channel.exchange)) {
|
||||
exchanges.push({
|
||||
exchange: channel.exchange,
|
||||
countryCode: 'CA',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue