This commit is contained in:
2026-02-19 21:39:17 +05:00
parent 2df88ad168
commit 99b968fcbf
7 changed files with 1993 additions and 3 deletions

View File

@@ -20,6 +20,8 @@ const userManagementAPI = require('./api-users');
//
const api2Groups = require('./api2-groups');
//
const chatAPI = require('./api-chat');
//
const app = express();
const PORT = process.env.PORT || 3000;
@@ -1461,7 +1463,9 @@ initializeServer().then(() => {
console.log('🔐 LDAP авторизация доступна для пользователей школы');
console.log(`👥 Разрешенные группы: ${process.env.ALLOWED_GROUPS}`);
console.log('📢 Система уведомлений активна');
// Подключаем API для чата
chatAPI(app, db, upload);
console.log('✅ API для чата задач подключено');
// Запускаем фоновые задачи
setInterval(checkOverdueTasks, 60000);
setInterval(checkUpcomingDeadlines, 60000);