Skip to content

Commit

Permalink
WIP: Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfraser committed Nov 22, 2024
1 parent ee6f8d5 commit cf44019
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export default async function runTask(): Promise<void> {
(market: PerpetualMarketFromDatabase) => market.ticker,
);

if (perpetualMarketRefresher === null || perpetualMarketRefresher === undefined) {
throw new Error('perpetualMarketRefresher is null');
}

if (marketTickers.length === 0) {
throw new Error('perpetualMarketRefresher is empty');
}
Expand Down

0 comments on commit cf44019

Please sign in to comment.