Skip to content

Commit

Permalink
change: sender to public client on stat any
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-aslan committed Dec 21, 2024
1 parent aa60700 commit db6720f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SmartHomeServer/MQTT/Commode1Topic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public Commode1Topic(IBotService botService, IStatService statService, ILogServi

public void Execute(MQTTMessage message)
{
if (_statService.Any(message.Sender, message.Topic, Encoding.Default.GetString(message.Payload)))
if (_statService.Any(((int)EClient.PublicClient).ToString(), message.Topic, Encoding.Default.GetString(message.Payload)))
return;
if (_statService.FirstOrDefalut(((int)EClient.PublicClient).ToString(), "alarm")?.Value == "1")
_userService.GetAdmins().ForEach(e =>
Expand Down
2 changes: 1 addition & 1 deletion SmartHomeServer/MQTT/Commode2Topic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public Commode2Topic(IBotService botService, IStatService statService, ILogServi

public void Execute(MQTTMessage message)
{
if (_statService.Any(message.Sender, message.Topic, Encoding.Default.GetString(message.Payload)))
if (_statService.Any(((int)EClient.PublicClient).ToString(), message.Topic, Encoding.Default.GetString(message.Payload)))
return;
if (_statService.FirstOrDefalut(((int)EClient.PublicClient).ToString(), "alarm")?.Value == "1")
_userService.GetAdmins().ForEach(e =>
Expand Down

0 comments on commit db6720f

Please sign in to comment.