Skip to content

Commit

Permalink
fix: off-by-one error in historical sync causing first week to not sy…
Browse files Browse the repository at this point in the history
…nc every 4 weeks
  • Loading branch information
SamMousa committed Nov 12, 2021
1 parent 7413fb4 commit f8eb981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/ListSync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Sync lists in lua
]]--

local ListSync, _ = LibStub:NewLibrary("EventSourcing/ListSync", 1)
local ListSync, _ = LibStub:NewLibrary("EventSourcing/ListSync", 2)
if not ListSync then
return end

Expand Down Expand Up @@ -477,7 +477,7 @@ function ListSync:enableSending()
end

-- Reset the rolling weeks, we've reached the start of our data
if self.advertiseRollingOffset >= rollingWeekOffsetLimit then
if self.advertiseRollingOffset > rollingWeekOffsetLimit then
self.advertiseRollingOffset = 0
end
end
Expand Down

0 comments on commit f8eb981

Please sign in to comment.