fix: device迁移acl

This commit is contained in:
dawnwinterLiu 2022-12-09 20:22:10 +08:00
parent 7b8a37173a
commit 9332fb820a

View File

@ -111,7 +111,7 @@ init(?TYPE, ChannelId, #{<<"offline">> := OffLine} = Args) ->
dgiot_parse_hook:subscribe(<<"Device">>, get, ChannelId),
dgiot_parse_hook:subscribe(<<"Device/*">>, get, ChannelId),
dgiot_parse_hook:subscribe(<<"Device">>, post, ChannelId),
dgiot_parse_hook:subscribe(<<"Device/*">>, put, ChannelId, [<<"isEnable">>]),
dgiot_parse_hook:subscribe(<<"Device/*">>, put, ChannelId, [<<"isEnable">>, <<"ACL">>]),
dgiot_parse_hook:subscribe(<<"Device/*">>, delete, ChannelId),
dgiot_parse_hook:subscribe(<<"Product">>, get, ChannelId),
dgiot_parse_hook:subscribe(<<"Product/*">>, get, ChannelId),