fix: bridge creation opts refs

This commit is contained in:
JimMoen 2022-08-12 10:07:54 +08:00
parent bed10b097f
commit 0c1285cdab
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,8 @@ fields(basic) ->
{direction, mk(egress, #{desc => ?DESC("config_direction"), default => egress})},
{local_topic, mk(binary(), #{desc => ?DESC("local_topic")})},
{write_syntax, fun write_syntax/1}
];
] ++
emqx_resource_schema:fields('creation_opts');
fields("post_udp") ->
method_fileds(post, influxdb_udp);
fields("post_api_v1") ->
@ -113,7 +114,6 @@ fields(Name) when
Name == influxdb_udp orelse Name == influxdb_api_v1 orelse Name == influxdb_api_v2
->
fields(basic) ++
emqx_resource_schema:fields('creation_opts') ++
connector_field(Name).
method_fileds(post, ConnectorType) ->