Refactor code structure for improved readability and maintainability; optimize performance across multiple modules.
All checks were successful
Deploy to production / deploy (push) Successful in 2m56s

This commit is contained in:
Torsten Schulz (local)
2026-07-21 09:08:15 +02:00
parent 75b52de282
commit 1ab9407e79
1400 changed files with 22278 additions and 485 deletions

2
backend/services/chatService.js Normal file → Executable file
View File

@@ -4,6 +4,7 @@ import User from '../models/community/user.js';
import Room from '../models/chat/room.js';
import UserParam from '../models/community/user_param.js';
import UserParamType from '../models/type/user_param.js';
import { dispatchRealtimeEvent } from './pushNotificationService.js';
const RABBITMQ_URL = process.env.AMQP_URL || 'amqp://localhost';
const QUEUE = 'oneToOne_messages';
@@ -257,6 +258,7 @@ class ChatService {
this.amqpAvailable = false;
}
}
await dispatchRealtimeEvent(user2HashId, 'chatMessage', { sender: user1HashId });
}
async getOneToOneMessageHistory(user1HashId, user2HashId) {