Skip to content

Commit

Permalink
Bot: fix Router TS (#3562)
Browse files Browse the repository at this point in the history
  • Loading branch information
iower committed Mar 4, 2021
1 parent 8fc8c5e commit 305c592
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/bot/routes/kraken/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import Router from 'express'
import kraken from '../../services/instances/kraken'


//@ts-ignore
const router = new Router()
const router = Router()

router.get('/', async (req, res) => {
router.get('/', async (req, res) => {
await kraken.getBalance().then(
(r) => {
res.json(Object.entries(r.result))
Expand Down
3 changes: 1 addition & 2 deletions src/bot/routes/me/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { balance, getMe, getWallet, getWalletDetailed, withdraw } from './contro
import { listMyOrders } from '../orders/controller'


//@ts-ignore
const router = new Router()
const router = Router()


router.get('/', getMe)
Expand Down
3 changes: 1 addition & 2 deletions src/bot/routes/orders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import {
} from './controller'


//@ts-ignore
const router = new Router()
const router = Router()

// order list
router.get('/', listOrders)
Expand Down
3 changes: 1 addition & 2 deletions src/bot/routes/swaps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import {
} from './controller'


//@ts-ignore
const router = new Router()
const router = Router()

router.get('/finished', getFinished)
router.get('/in-progress', getInProgress)
Expand Down

0 comments on commit 305c592

Please sign in to comment.