From a03fa66a966b7cb712e6f1628bba27717ac06685 Mon Sep 17 00:00:00 2001 From: Theo Fandrich Date: Mon, 18 Sep 2023 13:03:16 -0700 Subject: [PATCH] changed some enum Deposit --> Buy --- src/modules/telegram_payment/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/telegram_payment/index.ts b/src/modules/telegram_payment/index.ts index 5d35d57c..839d62c1 100644 --- a/src/modules/telegram_payment/index.ts +++ b/src/modules/telegram_payment/index.ts @@ -6,7 +6,7 @@ import { type BotPayments } from '../payment' import pino, { type Logger } from 'pino' enum SupportedCommands { - DEPOSIT = 'buy', + BUY = 'buy', } export class TelegramPayments { @@ -30,7 +30,7 @@ export class TelegramPayments { } public async onEvent (ctx: OnMessageContext): Promise { - if (ctx.hasCommand(SupportedCommands.DEPOSIT)) { + if (ctx.hasCommand(SupportedCommands.BUY)) { await this.createPaymentInvoice(ctx) return }