filter messages outside time range

This commit is contained in:
Stephen Solka 2020-01-12 20:39:42 +00:00
parent c1003639d0
commit d244bb29c5
1 changed files with 2 additions and 1 deletions

View File

@ -629,7 +629,8 @@ module.exports = (cooler) => {
return typeof msg.value.content === 'object' &&
typeof msg.value.content.vote === 'object' &&
typeof msg.value.content.vote.link === 'string' &&
typeof msg.value.content.vote.value === 'number'
typeof msg.value.content.vote.value === 'number' &&
msg.value.timestamp > earliest
}),
pull.reduce((acc, cur) => {
const author = cur.value.author