fix(actions): use backward-compatible ids

This commit is contained in:
Thales Macedo Garitezi 2023-12-19 18:04:39 -03:00
parent 14b99737e9
commit cc34660ab9
1 changed files with 6 additions and 1 deletions

View File

@ -939,7 +939,12 @@ id_with_root_name(RootName, BridgeType, BridgeName) ->
) )
end. end.
id_with_root_name(RootName, BridgeType, BridgeName, ConnectorName) -> id_with_root_name(RootName0, BridgeType, BridgeName, ConnectorName) ->
RootName =
case bin(RootName0) of
<<"actions">> -> <<"action">>;
<<"sources">> -> <<"source">>
end,
ConnectorType = bin(connector_type(BridgeType)), ConnectorType = bin(connector_type(BridgeType)),
<< <<
(bin(RootName))/binary, (bin(RootName))/binary,