Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge 3f295f7 into dfd5d5f
Browse files Browse the repository at this point in the history
  • Loading branch information
navillasa committed Feb 26, 2018
2 parents dfd5d5f + 3f295f7 commit bcaa6a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/models/contact.js
Expand Up @@ -194,6 +194,14 @@ ContactSchema.methods.recordResponseTime = function(responseTime) {
return this;
};

/**
* Update lastSeen
*/
ContactSchema.methods.recordLastSeen = function() {
this.lastSeen = Date.now();
return this;
};

/**
* Returns the last N recently seen contacts
* @param {kad.contacts.AddressPortContact} contact
Expand Down

0 comments on commit bcaa6a5

Please sign in to comment.