Skip to content

Commit

Permalink
fix: Manage change valve status on "ve_node_shutoff_valve" view
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarfuste committed Sep 20, 2024
1 parent 3327809 commit e451be5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ws/fct/ws_gw_fct_setchangevalvestatus.sql
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ BEGIN
END IF;
raise notice 'node_id %', v_node;

IF (SELECT count(*) FROM man_valve WHERE node_id = v_node) > 0 THEN
IF (SELECT count(*) FROM ve_node_shutoff_valve WHERE node_id = v_node) > 0 THEN

UPDATE man_valve SET closed = NOT closed WHERE node_id = v_node;
UPDATE ve_node_shutoff_valve SET closed = NOT closed WHERE node_id = v_node;
--v_message = 'Change valve status done successfully. You can continue by clicking on more valves or finish the process by executing Refresh Mincut';
EXECUTE 'SELECT gw_fct_getmessage($${"client":{"device":4, "infoType":1, "lang":"ES"},"feature":{},
"data":{"message":"3176", "function":"3026","debug_msg":"", "is_process":true}}$$)'
Expand Down

0 comments on commit e451be5

Please sign in to comment.