diff --git a/src/ws/handlers.rs b/src/ws/handlers.rs index bc38744..b4d0b16 100644 --- a/src/ws/handlers.rs +++ b/src/ws/handlers.rs @@ -131,7 +131,7 @@ async fn handle_relays( relays: Vec, ) -> 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", )));