Commit ae86f9a5 authored by Laura Kalbag's avatar Laura Kalbag

Add current timestamp to metadata hash to avoid hung updates

parent 3b798092
......@@ -720,7 +720,6 @@ Better is a Safari content blocker for <a href='https://itunes.apple.com/us/app/
args = [@rules]
output = JSON.stringify.apply @, args
hash = checksum(output)
# TODO: Only update metadata if rules have been updated.
......@@ -811,6 +810,8 @@ Better is a Safari content blocker for <a href='https://itunes.apple.com/us/app/
lastModifiedTimes = `Object.values(this.contentCurrentModifiedTimes)`
lastModifiedTime = `lastModifiedTimes.reduce ((x,y) => { return (x > y ? x : y) })`
hash = checksum(output + lastModifiedTime)
metadata = `JSON.stringify({
md5: hash,
lastUpdate: lastModifiedTime,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment