feat(announce): add more debug log info

This commit is contained in:
OldHawk
2018-05-15 13:35:02 +08:00
parent 51a2f1bd57
commit d0b93db6ff

View File

@@ -119,7 +119,7 @@ PeerSchema.methods.globalUpdateMethod = function (findThenUpdate, cb) {
}
if (findThenUpdate) {
this.model('Peer').findById(this._id).populate('torrent').exec(function (err, p) {
this.model('Peer').findById(this._id).populate('torrent').populate('user').exec(function (err, p) {
if (p) {
p.refreshat = Date.now();
p.save(function (err, np) {