fix(feed): fix feed error #111

This commit is contained in:
Alexey Kasyanchuk 2019-12-25 12:07:48 +03:00
parent e5d7f32b3b
commit 13168393ba

View File

@ -97,7 +97,7 @@ module.exports = class Feed {
const good = (x && x.good) || 0
const bad = (x && x.bad) || 0
const comments = 0
let time = Math.floor(Date.now() / 1000) - x.feedDate
let time = Math.floor(Date.now() / 1000) - ((x && x.feedDate) || 0)
const maxTime = 600000
if(time > maxTime)