mejoras
This commit is contained in:
@@ -442,12 +442,12 @@ class BotService {
|
||||
)['count'];
|
||||
|
||||
// Total de mensajes
|
||||
$stats['total_messages'] = $this->db->fetch(
|
||||
$stats['total_conversations'] = $this->db->fetch(
|
||||
"SELECT COUNT(*) as count FROM conversations"
|
||||
)['count'];
|
||||
|
||||
// Mensajes hoy
|
||||
$stats['messages_today'] = $this->db->fetch(
|
||||
$stats['conversations_today'] = $this->db->fetch(
|
||||
"SELECT COUNT(*) as count FROM conversations
|
||||
WHERE DATE(created_at) = CURDATE()"
|
||||
)['count'];
|
||||
|
||||
Reference in New Issue
Block a user