mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Add redis analytics
This commit is contained in:
@@ -140,7 +140,9 @@ export default class BotsManager {
|
||||
});
|
||||
|
||||
application.get("/metrics", (req, res) => {
|
||||
res.send(UsersCounter.getMetrics());
|
||||
UsersCounter.getMetrics().then((response) => {
|
||||
res.send(response);
|
||||
});
|
||||
});
|
||||
|
||||
application.use((req: Request, res: Response, next: NextFunction) => this.handleUpdate(req, res, next));
|
||||
|
||||
Reference in New Issue
Block a user