Only detect a change when the new database changed time is actually AFTER the last remembered one (references #59)

This commit is contained in:
Bernd Bestel 2018-09-25 08:44:12 +02:00
parent 60d47bef84
commit 03ca5cd45b
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -17,7 +17,7 @@ setInterval(function()
function(result)
{
var newDbChangedTime = moment(result.changed_time);
if (newDbChangedTime.isSameOrAfter(Grocy.DatabaseChangedTime))
if (newDbChangedTime.isAfter(Grocy.DatabaseChangedTime))
{
if (Grocy.IdleTime >= 50)
{