Skip to content

Commit

Permalink
changed some enum Deposit --> Buy
Browse files Browse the repository at this point in the history
  • Loading branch information
theofandrich committed Sep 18, 2023
1 parent feb9dbb commit a03fa66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/telegram_payment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { type BotPayments } from '../payment'
import pino, { type Logger } from 'pino'

enum SupportedCommands {
DEPOSIT = 'buy',
BUY = 'buy',
}

export class TelegramPayments {
Expand All @@ -30,7 +30,7 @@ export class TelegramPayments {
}

public async onEvent (ctx: OnMessageContext): Promise<void> {
if (ctx.hasCommand(SupportedCommands.DEPOSIT)) {
if (ctx.hasCommand(SupportedCommands.BUY)) {
await this.createPaymentInvoice(ctx)
return
}
Expand Down

0 comments on commit a03fa66

Please sign in to comment.