Skip to content

Commit

Permalink
Merge pull request #71 from FlavioAandres/fix-telegram-bot
Browse files Browse the repository at this point in the history
Fixing Telegram bot.
  • Loading branch information
AndresMorelos authored Jul 7, 2021
2 parents 0030198 + 43f10be commit 836ae6b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
3 changes: 1 addition & 2 deletions AutomationServices/TelegramBot/src/commands/add/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
const getUserInfo = require('../../controllers/getUserInfo');
const saveIncome = require('../../controllers/saveIncome');
const savePayment = require('../../controllers/savePayment');
const Markup = require('telegraf/lib/markup')
const { Scenes, Stage, session } = require('telegraf')
const { Scenes, session, Markup } = require('telegraf')


module.exports = add = (bot) => {
Expand Down
2 changes: 1 addition & 1 deletion AutomationServices/TelegramBot/src/commands/total/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = total = (bot) => {
return prev
}, "")

data += "\n*Total:* $" + formatCahs(result.reduce((prev, current, index) => {
data += "\n*Total:* " + formatCahs(result.reduce((prev, current, index) => {
prev += current.amount
return prev
}, 0))
Expand Down
38 changes: 29 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 836ae6b

Please sign in to comment.