mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-02 20:49:24 +01:00
feat(announce): add more debug log info
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user