added struct to model

This commit is contained in:
0xdcarns
2022-01-29 09:26:18 -05:00
parent 79cff15cde
commit 3483e45beb
3 changed files with 7 additions and 10 deletions
+1 -3
View File
@@ -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