From d641d44ade5e1a449946d76e7ab15b07f24ad150 Mon Sep 17 00:00:00 2001 From: Louis Royer Date: Thu, 24 Oct 2024 11:57:14 +0200 Subject: [PATCH] Fix sql request for uplink action --- internal/database/database.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/database/database.sql b/internal/database/database.sql index a518e45..b1a5f1c 100644 --- a/internal/database/database.sql +++ b/internal/database/database.sql @@ -87,8 +87,10 @@ BEGIN FROM rule WHERE (rule.match_uplink_teid = in_uplink_teid AND rule.match_gnb_ip && in_gnb_ip - AND (rule.match_ue_ip && in_ue_ip) - AND (rule.match_service_ip && in_service_ip) + AND rule.match_ue_ip && in_ue_ip + AND rule.match_service_ip && in_service_ip + AND rule.enabled = TRUE + AND rule.type_uplink = TRUE ); END;$$ LANGUAGE plpgsql;