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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user