From 573eed2d8575a29d09c9602acf1f2765adc9abcb Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 21 Oct 2020 05:10:59 +0300 Subject: DataStore Synchronization ! --- .../Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 2eb2b01c4..fbc4f8a0a 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/PPCController.cs @@ -582,7 +582,7 @@ namespace Tango.MachineService.Controllers db.DataStoreItems.Add(dataStoreItem); db.SaveChanges(); } - else if (dataStoreItem.LastUpdated > existingItem.LastUpdated) + else if (dataStoreItem.LastUpdated >= existingItem.LastUpdated) { existingItem.DataType = dataStoreItem.DataType; existingItem.Value = dataStoreItem.Value; -- cgit v1.3.1