binary-coffee-dev / dcs-blog

Our own blog for the community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor the code related to the notifications bot (telegram)

wil92 opened this issue · comments

Description

The code for notifying thrown the telegram bot needs to be refactored and improved. The best option is to create a new function in the configuration and set up the needed methods there, so it can be extended to other areas of the application.

Currently, this code can be found here:
api/comment/controllers/comment.js:71