Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JSHan94 committed Jan 3, 2024
1 parent f29ef62 commit 71cbd49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
17 changes: 5 additions & 12 deletions bots/src/lib/query.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -17,13 +13,10 @@ import axios from 'axios';
export async function getLastOutputInfo(
bridgeId: number
): Promise<OutputInfo | null> {
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];
}
Expand Down
6 changes: 3 additions & 3 deletions bots/src/orm/CamelToSnakeNamingStrategy.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand All @@ -16,4 +16,4 @@ class CamelToSnakeNamingStrategy extends DefaultNamingStrategy {
}
}

export default CamelToSnakeNamingStrategy;
module.exports = CamelToSnakeNamingStrategy;

0 comments on commit 71cbd49

Please sign in to comment.