Skip to content

Commit

Permalink
feat(*): add info for paid_days
Browse files Browse the repository at this point in the history
  • Loading branch information
aronbergman committed May 8, 2024
1 parent 2da36b7 commit 4305339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/commands/keyboard/my_account.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const keyboardMyAccount = async (bot, msg, prevMessageForEdit, prevLevel,
disable_web_page_preview: true
}
try {
const { tokens } = await db.subscriber.findOne({
const { tokens, paid_days } = await db.subscriber.findOne({
where: {
chat_id: chatId,
user_id: msg.from.id
Expand Down Expand Up @@ -97,7 +97,7 @@ export const keyboardMyAccount = async (bot, msg, prevMessageForEdit, prevLevel,

eventEmitter.on(`get_first_level_A_${msgId}`, function() {
bot.editMessageText(
t('account', { tokens }),
t('account', { tokens, paid_days }),
{
message_id: accountMessage.message_id,
chat_id: chatId,
Expand Down

0 comments on commit 4305339

Please sign in to comment.