Kaynağa Gözat

fix: missing emqx_action_info module mapping

Kjell Winblad 2 yıl önce
ebeveyn
işleme
cd72dc11dd
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7 1
      apps/emqx_bridge/src/emqx_action_info.erl

+ 7 - 1
apps/emqx_bridge/src/emqx_action_info.erl

@@ -224,7 +224,8 @@ initial_info_map() ->
         bridge_v1_type_to_action_type => #{},
         bridge_v1_type_to_action_type => #{},
         action_type_to_bridge_v1_type => #{},
         action_type_to_bridge_v1_type => #{},
         action_type_to_connector_type => #{},
         action_type_to_connector_type => #{},
-        action_type_to_schema_module => #{}
+        action_type_to_schema_module => #{},
+        action_type_to_info_module => #{}
     }.
     }.
 
 
 get_info_map(Module) ->
 get_info_map(Module) ->
@@ -258,5 +259,10 @@ get_info_map(Module) ->
         },
         },
         action_type_to_schema_module => #{
         action_type_to_schema_module => #{
             ActionType => Module:schema_module()
             ActionType => Module:schema_module()
+        },
+        action_type_to_info_module => #{
+            ActionType => Module,
+            %% Alias the bridge V1 type to the action type
+            BridgeV1Type => Module
         }
         }
     }.
     }.