From 71cbd49df6faa253496c2470e8e93032c103de50 Mon Sep 17 00:00:00 2001 From: JSHan94 Date: Wed, 3 Jan 2024 14:41:17 +0900 Subject: [PATCH] lint --- bots/src/lib/query.ts | 17 +++++------------ bots/src/orm/CamelToSnakeNamingStrategy.js | 6 +++--- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/bots/src/lib/query.ts b/bots/src/lib/query.ts index 02989e9f..76d62e04 100644 --- a/bots/src/lib/query.ts +++ b/bots/src/lib/query.ts @@ -1,8 +1,4 @@ -import { - BridgeInfo, - OutputInfo, - TokenPair -} from '@initia/initia.js'; +import { BridgeInfo, OutputInfo, TokenPair } from '@initia/initia.js'; import { config } from 'config'; import { DepositTxResponse, @@ -17,13 +13,10 @@ import axios from 'axios'; export async function getLastOutputInfo( bridgeId: number ): Promise { - const [outputInfos] = await config.l1lcd.ophost.outputInfos( - bridgeId, - { - 'pagination.limit': '1', - 'pagination.reverse': 'true' - } - ); + const [outputInfos] = await config.l1lcd.ophost.outputInfos(bridgeId, { + 'pagination.limit': '1', + 'pagination.reverse': 'true' + }); if (outputInfos.length === 0) return null; return outputInfos[0]; } diff --git a/bots/src/orm/CamelToSnakeNamingStrategy.js b/bots/src/orm/CamelToSnakeNamingStrategy.js index e652f5ff..5bd4a99b 100644 --- a/bots/src/orm/CamelToSnakeNamingStrategy.js +++ b/bots/src/orm/CamelToSnakeNamingStrategy.js @@ -1,5 +1,5 @@ -import { DefaultNamingStrategy } from 'typeorm'; -import { snakeCase } from 'lodash'; +const { DefaultNamingStrategy } = require('typeorm'); +const { snakeCase } = require('lodash'); class CamelToSnakeNamingStrategy extends DefaultNamingStrategy { tableName(targetName, userSpecifiedName) { @@ -16,4 +16,4 @@ class CamelToSnakeNamingStrategy extends DefaultNamingStrategy { } } -export default CamelToSnakeNamingStrategy; \ No newline at end of file +module.exports = CamelToSnakeNamingStrategy; \ No newline at end of file