fix(rule-engine): add format space
This commit is contained in:
parent
689b530b4f
commit
b5c435e211
|
@ -251,7 +251,7 @@ update_resource(ResId, NewParams) ->
|
||||||
lists:foreach(fun(#rule{id = RuleId, enabled = Enabled, actions = Actions}) ->
|
lists:foreach(fun(#rule{id = RuleId, enabled = Enabled, actions = Actions}) ->
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun (#action_instance{args = #{<<"$resource">> := ResId1}})
|
fun (#action_instance{args = #{<<"$resource">> := ResId1}})
|
||||||
when ResId =:= ResId1, Enabled == true ->
|
when ResId =:= ResId1, Enabled =:= true ->
|
||||||
throw({dependency_exists, RuleId});
|
throw({dependency_exists, RuleId});
|
||||||
(_) -> ok
|
(_) -> ok
|
||||||
end, Actions)
|
end, Actions)
|
||||||
|
|
Loading…
Reference in New Issue