From d23c732305a52b8fae0f5010964853ca31ec044f Mon Sep 17 00:00:00 2001 From: Pedro Sanders Date: Wed, 27 Dec 2023 11:49:00 -0500 Subject: [PATCH] chore: code cleanup --- mods/registry/src/runner.ts | 3 ++- mods/registry/src/utils.ts | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/registry/src/runner.ts b/mods/registry/src/runner.ts index 3507984e5..2a132f9d2 100644 --- a/mods/registry/src/runner.ts +++ b/mods/registry/src/runner.ts @@ -19,11 +19,12 @@ */ // eslint-disable-next-line @typescript-eslint/no-var-requires require("./tracer").init("dispatcher") +import { CONFIG_PATH, ENABLE_HEALTHCHECKS } from "./envs" import registryService from "./service" import { getConfig } from "./config/get_config" import { getLogger } from "@fonoster/logger" -import { CONFIG_PATH, ENABLE_HEALTHCHECKS } from "./envs" import express from "express" + const app = express() const healthPort = 8080 diff --git a/mods/registry/src/utils.ts b/mods/registry/src/utils.ts index a43578639..b2c219b88 100644 --- a/mods/registry/src/utils.ts +++ b/mods/registry/src/utils.ts @@ -1,3 +1,4 @@ +/* eslint-disable require-jsdoc */ /* * Copyright (C) 2023 by Fonoster Inc (https://fonoster.com) * http://github.com/fonoster/routr @@ -28,7 +29,6 @@ import { Trunk } from "./types" -// eslint-disable-next-line require-jsdoc export function getUnregisteredTrunks(store: IRegistryStore) { return async (trunks: Trunk[]): Promise => { const registryEntries = await store.list() @@ -41,7 +41,6 @@ export function getUnregisteredTrunks(store: IRegistryStore) { } } -// eslint-disable-next-line require-jsdoc export async function findTrunks(apiClient: CC.APIClient) { return ( await apiClient.trunks.findBy({