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);