Skip to content

Commit

Permalink
fix: remove tip and rank commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelMedeiros committed Apr 22, 2024
1 parent ea9af34 commit f1ec339
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/domain/bot/bot.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import {
NodeStatsCommand,
OpReturnCommand,
PriceCommand,
RankCommand,
TipCommand,
// RankCommand,
// TipCommand,
TransactionCommand,
} from './commands'
import { MurrayServiceRepository } from './repositories'
Expand Down Expand Up @@ -62,8 +62,8 @@ import { NumbersService } from 'src/utils/numbers/numbers.service'
NodeStatsCommand,
OpReturnCommand,
PriceCommand,
RankCommand,
TipCommand,
// RankCommand,
// TipCommand,
TransactionCommand,

// Helpers
Expand Down
4 changes: 2 additions & 2 deletions src/domain/bot/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export * from './my-alert-price.command'
export * from './my-alert-tx.command'
export * from './node-stats.command'
export * from './op-return.command'
export * from './tip.command'
// export * from './tip.command'
export * from './transaction.command'
export * from './rank.command'
// export * from './rank.command'
export * from './fees.command'
18 changes: 9 additions & 9 deletions src/domain/webhooks/webhooks.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ export class WebhooksController {
}
}

@Post('/tip/:userId')
sendTip(@Param() params: MessageParamsDto, @Body() tipDto: MessageResponseDto) {
try {
const { userId } = params
this.webhooksService.sendTip(userId, tipDto)
} catch (error) {
console.log(error)
}
}
// @Post('/tip/:userId')
// sendTip(@Param() params: MessageParamsDto, @Body() tipDto: MessageResponseDto) {
// try {
// const { userId } = params
// this.webhooksService.sendTip(userId, tipDto)
// } catch (error) {
// console.log(error)
// }
// }
}

0 comments on commit f1ec339

Please sign in to comment.