Исправлено дублирование сообщений в task-чате: защита от двойного Enter/клика по кнопке отправки

This commit is contained in:
2026-08-24 16:53:25 +03:00
parent 8b713e66c0
commit c0e2ddd9c8
11 changed files with 1 additions and 1666 deletions

View File

@@ -8,7 +8,6 @@ import { notificationService } from "./services/notification.service";
import { webPushService } from "./services/web-push.service";
import { startMedScheduleWorker } from "./medschedule/worker";
import { startAutomationScheduler } from "./workers/automation-scheduler";
import { startGpsWorker } from "./gps/worker";
import { storage } from "./storage";
import type { ReminderRecipient } from "@shared/schema";
import { db, withSuperAdmin } from "./db"; // lazy proxy — safe at module load; throws on first use if DATABASE_URL missing
@@ -1100,10 +1099,6 @@ async function runStartupDataPatches() {
startAutomationScheduler();
log('Automation scheduler started');
// Start GPS worker (offline detection for tracked assets)
startGpsWorker();
log('GPS worker started');
// Clean up duplicate subscriptions then backfill defaults for existing users
(async () => {
try {