Fix missing last_seen_at field update of relay gateway.

This commit is contained in:
Orne Brocaar 2024-08-13 15:54:51 +01:00
parent 76b7ec4881
commit 1848097e6c

View File

@ -400,6 +400,7 @@ pub async fn update_relay_gateway(relay: RelayGateway) -> Result<RelayGateway, E
diesel::update(relay_gateway::dsl::relay_gateway.find((&relay.tenant_id, &relay.relay_id)))
.set((
relay_gateway::updated_at.eq(&relay.updated_at),
relay_gateway::last_seen_at.eq(&relay.last_seen_at),
relay_gateway::name.eq(&relay.name),
relay_gateway::description.eq(&relay.description),
relay_gateway::stats_interval_secs.eq(&relay.stats_interval_secs),