Adapt to new relay model
This commit is contained in:
parent
4f48b04acc
commit
8a04278da5
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ async fn handle_relays(
|
|||
relays: Vec<Relay>,
|
||||
) -> Result<(), EmgauwaError> {
|
||||
for relay in relays {
|
||||
if relay.controller.uid != this.c.uid {
|
||||
if relay.r.controller_uid != this.c.uid {
|
||||
return Err(EmgauwaError::Other(String::from(
|
||||
"Controller UID mismatch during relay update",
|
||||
)));
|
||||
|
|
Loading…
Reference in a new issue