mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
added struct to model
This commit is contained in:
@@ -211,9 +211,7 @@ func initializeUUID() error {
|
||||
return keyErr
|
||||
}
|
||||
|
||||
data, _ := json.Marshal(rsaPrivKey)
|
||||
|
||||
telemetry := models.Telemetry{UUID: uuid.NewString(), TrafficKey: string(data)}
|
||||
telemetry := models.Telemetry{UUID: uuid.NewString(), TrafficKey: *rsaPrivKey}
|
||||
telJSON, err := json.Marshal(&telemetry)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user