From 2f91af8a799782b821acf4e66c84ea7aefa27048 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 30 Oct 2019 16:31:07 +0200 Subject: Added firmware version to TANGO_VERSIONS. Added total version info to TUP file as 'version.json'. --- .../Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs | 2 ++ .../Visual_Studio/Web/Tango.MachineService/Models/PPCPendingUpload.cs | 2 ++ 2 files changed, 4 insertions(+) (limited to 'Software/Visual_Studio/Web/Tango.MachineService') diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs index fe6bfad29..a77212787 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs @@ -378,6 +378,7 @@ namespace Tango.MachineService.Controllers Version = request.Version, BlobName = blob.Name, MachineVersionGuid = request.MachineVersionGuid, + FirmwareVersion = request.FirmwareVersion, }; if (request.WithInstaller) @@ -424,6 +425,7 @@ namespace Tango.MachineService.Controllers UserGuid = upload.UserGuid, Version = upload.Version, MachineVersionGuid = upload.MachineVersionGuid, + FirmwareVersion = upload.FirmwareVersion, }); db.SaveChanges(); diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Models/PPCPendingUpload.cs b/Software/Visual_Studio/Web/Tango.MachineService/Models/PPCPendingUpload.cs index b97d8b6c8..408fd74dc 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Models/PPCPendingUpload.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService/Models/PPCPendingUpload.cs @@ -11,6 +11,8 @@ namespace Tango.MachineService.Models public String Version { get; set; } + public String FirmwareVersion { get; set; } + public String UserGuid { get; set; } public String Comments { get; set; } -- cgit v1.3.1