Fix small bugs in updating relays

This commit is contained in:
Tobias Reisinger 2023-12-05 03:12:47 +01:00
parent e2cd84b136
commit 8b1affd8c7
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 15 additions and 5 deletions
emgauwa-core/src/handlers/v1

View file

@ -136,6 +136,8 @@ pub async fn update_for_controller(
relay.set_tags(&mut pool_conn, tags.as_slice()).await?;
}
let relay = relay.reload(&mut pool_conn).await?;
let return_relay = Relay::from_db_model(&mut pool_conn, relay)?;
app_server