mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Only detect a change when the new database changed time is actually AFTER the last remembered one (references #59)
This commit is contained in:
parent
60d47bef84
commit
03ca5cd45b
@ -17,7 +17,7 @@ setInterval(function()
|
|||||||
function(result)
|
function(result)
|
||||||
{
|
{
|
||||||
var newDbChangedTime = moment(result.changed_time);
|
var newDbChangedTime = moment(result.changed_time);
|
||||||
if (newDbChangedTime.isSameOrAfter(Grocy.DatabaseChangedTime))
|
if (newDbChangedTime.isAfter(Grocy.DatabaseChangedTime))
|
||||||
{
|
{
|
||||||
if (Grocy.IdleTime >= 50)
|
if (Grocy.IdleTime >= 50)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user