1
0
mirror of https://github.com/seejohnrun/haste-server.git synced 2025-12-13 23:25:56 +00:00

Kick expirations back on view

This commit is contained in:
John Crepezzi
2011-11-28 01:13:14 -05:00
parent cd9bf18d29
commit 92e0f579ca
5 changed files with 12 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ var DocumentHandler = function(options) {
};
// Handle retrieving a document
DocumentHandler.prototype.handleGet = function(key, response) {
DocumentHandler.prototype.handleGet = function(key, response, skipExpire) {
this.store.get(key, function(ret) {
if (ret) {
winston.verbose('retrieved document', { key: key });
@@ -23,7 +23,7 @@ DocumentHandler.prototype.handleGet = function(key, response) {
response.writeHead(404, { 'content-type': 'application/json' });
response.end(JSON.stringify({ message: 'document not found' }));
}
});
}, skipExpire);
};
// Handle adding a new Document