Skip to content

Commit

Permalink
lint code;
Browse files Browse the repository at this point in the history
Signed-off-by: tcar <[email protected]>
  • Loading branch information
tcar121293 committed Dec 7, 2023
1 parent 5e7aa5f commit 6186615
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/indexer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SPDX-License-Identifier: LGPL-3.0-only
import nodeCleanup from "node-cleanup"
import { FastifyInstance } from "fastify"
import { PrismaClient } from "@prisma/client"
import { CronJob } from "cron"
import { logger } from "../utils/logger"
import { SubstrateIndexer } from "./services/substrateIndexer/substrateIndexer"
import { EvmIndexer } from "./services/evmIndexer/evmIndexer"
Expand All @@ -21,7 +22,6 @@ import AccountRepository from "./repository/account"
import CoinMarketCapService from "./services/coinmarketcap/coinmarketcap.service"
import { checkTransferStatus, getCronJob } from "./services/monitoringService"
import { NotificationSender } from "./services/monitoringService/notificationSender"
import { CronJob } from "cron"

interface DomainIndexer {
listenToEvents(): Promise<void>
Expand Down Expand Up @@ -70,7 +70,7 @@ init()
logger.error("Error occurred on app initialization: ", reason)
})

async function init(): Promise<{ domainIndexers: Array<DomainIndexer>; app: FastifyInstance, cron: CronJob }> {
async function init(): Promise<{ domainIndexers: Array<DomainIndexer>; app: FastifyInstance; cron: CronJob }> {
const sharedConfig = await getSharedConfig(process.env.SHARED_CONFIG_URL!)

const chainAnalysisUrl = process.env.CHAIN_ANALYSIS_URL || ""
Expand Down
2 changes: 1 addition & 1 deletion src/indexer/services/monitoringService/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function checkTransferStatus(transferRepository: TransferRepository
}
}

export function startCronJob(cronTime: string | Date | DateTime, fn: Function, ...args: Parameters<any>): CronJob {
export function getCronJob(cronTime: string | Date | DateTime, fn: Function, ...args: Parameters<any>): CronJob {
return new CronJob(cronTime, () => {
try {
fn(...args)
Expand Down

0 comments on commit 6186615

Please sign in to comment.