diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-17 02:08:31 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-17 02:08:31 +0200 |
| commit | d99c80d6633d2932cf67fc7013100a639882c6dc (patch) | |
| tree | adfd15f59a653699e26818e19319ee40e4dce063 /Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs | |
| parent | bdf56799cd6c4c42ec7a8dc36f56ddd17a5feeab (diff) | |
| download | Tango-d99c80d6633d2932cf67fc7013100a639882c6dc.tar.gz Tango-d99c80d6633d2932cf67fc7013100a639882c6dc.zip | |
Implemented PPC Updates/Synchronization View.
Refactored database updates to be deleted if no differences.
Updated MS and PPC with Offline Updates.
Refactored Machine Designer Updates View to take only last 100 update entries.
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs')
| -rw-r--r-- | Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs index 4bde9148a..10a732221 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs @@ -275,6 +275,11 @@ namespace Tango.MachineService.Controllers tangoUpdate.FailedReason = request.FailedReason; tangoUpdate.FailedLog = request.FailedLog; + if (request.ReportsAboutDbCheckNoDifferences) + { + db.TangoUpdates.Remove(tangoUpdate); + } + db.SaveChanges(); } } |
