From c0eae130d9ab86e4bfd66e3281d98a4abf704937 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 10 Mar 2017 00:28:19 +0100 Subject: [PATCH] =?UTF-8?q?fixe=20la=20r=C3=A9ponse=20"recharger"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yavsc/ApiControllers/GCMController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yavsc/ApiControllers/GCMController.cs b/Yavsc/ApiControllers/GCMController.cs index aa0ebcd4..5dc97e0b 100644 --- a/Yavsc/ApiControllers/GCMController.cs +++ b/Yavsc/ApiControllers/GCMController.cs @@ -61,7 +61,7 @@ public class GCMController : Controller var latestActivityUpdate = _context.Activities.Max(a=>a.DateModified); return Json(new { IsAnUpdate = deviceAlreadyRegistered, - UpdateActivities = latestActivityUpdate > declaration.LatestActivityUpdate + UpdateActivities = (latestActivityUpdate != declaration.LatestActivityUpdate) }); } return new BadRequestObjectResult(ModelState);