mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-26 11:00:30 +02:00
fix(announce): fixed data log issue
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user