Adapt to new relay model

This commit is contained in:
Tobias Reisinger 2024-06-11 14:10:51 +02:00
parent 4f48b04acc
commit 8a04278da5
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -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",
)));