Update properties > metadata in gateway API.

This commit is contained in:
Orne Brocaar 2022-11-04 12:03:01 +00:00
parent a864bd2e5d
commit 0b7ee05c6f

View File

@ -98,7 +98,7 @@ impl GatewayService for Gateway {
}), }),
tenant_id: gw.tenant_id.to_string(), tenant_id: gw.tenant_id.to_string(),
tags: gw.tags.into_hashmap(), tags: gw.tags.into_hashmap(),
properties: gw.properties.into_hashmap(), metadata: gw.properties.into_hashmap(),
}), }),
created_at: Some(helpers::datetime_to_prost_timestamp(&gw.created_at)), created_at: Some(helpers::datetime_to_prost_timestamp(&gw.created_at)),
updated_at: Some(helpers::datetime_to_prost_timestamp(&gw.updated_at)), updated_at: Some(helpers::datetime_to_prost_timestamp(&gw.updated_at)),