mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-12 20:48:09 +00:00
Fix missing GatewayStats v4_migrate.
This is needed as the gateway_id field has changed from bytes to string (as the Protobuf JSON mapping encodes bytes to base64).
This commit is contained in:
8
api/rust/src/gw.rs
vendored
8
api/rust/src/gw.rs
vendored
@ -277,3 +277,11 @@ impl DownlinkTxAck {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl GatewayStats {
|
||||
pub fn v4_migrate(&mut self) {
|
||||
if self.gateway_id.is_empty() {
|
||||
self.gateway_id = hex::encode(&self.gateway_id_legacy);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user