fix(announce): fixed data log issue

This commit is contained in:
OldHawk
2018-05-04 18:05:58 +08:00
parent 486756a430
commit 941f375be2

View File

@@ -58,6 +58,7 @@ module.exports.announceLog = function (user, torrent, data) {
var d = mom.get('date');
UserDaysLog.findOne({
user: user,
year: y,
month: m,
date: d
@@ -101,6 +102,7 @@ module.exports.announceLog = function (user, torrent, data) {
//write userMonthsLog
UserMonthsLog.findOne({
user: user,
year: y,
month: m
}).exec(function (err, l) {