Skip to content
Permalink
Browse files

Add default flags in republish

  • Loading branch information
terry-xiaoyu committed Nov 15, 2019
1 parent b1a942c commit 60e45c28596a6cb42437043fbba5509502a3cf41
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/emqx_rule_actions.erl
@@ -151,7 +151,7 @@ on_action_create_republish(Id, #{<<"target_topic">> := TargetTopic, <<"target_qo
id = emqx_guid:gen(),
qos = if TargetQoS =:= -1 -> 0; true -> TargetQoS end,
from = Id,
flags = #{},
flags = #{dup => false, retain => false},
headers = #{republish_by => Id},
topic = emqx_rule_utils:proc_tmpl(TopicTks, Selected),
payload = emqx_rule_utils:proc_tmpl(PayloadTks, Selected),

0 comments on commit 60e45c2

Please sign in to comment.
You can’t perform that action at this time.