Fix jwt-token

This commit is contained in:
2025-09-01 07:24:36 +02:00
parent 8c4fc4f62b
commit e312c61b56
6 changed files with 507 additions and 3 deletions

View File

@@ -136,6 +136,12 @@ class AlertService {
async processAlert(detection) {
try {
// Skip alert processing for drone type 0 (None) - no actual detection
if (detection.drone_type === 0) {
console.log(`🔍 Skipping alert processing for drone type 0 (None) - detection ${detection.id}`);
return;
}
console.log(`🔍 Processing alert for detection ${detection.id}`);
// Assess threat level based on RSSI and drone type