Fix jwt-token
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user