mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Wrong connection.
This commit is contained in:
parent
7938fb589d
commit
74997ff554
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ do ->
|
|||
feed_id = parseInt(req.params[0], 10)
|
||||
etag = req.header('If-None-Match')
|
||||
log.debug "Feed: #{feed_id} " + if etag then " / #{etag}" else ""
|
||||
@collection.findOne _id: feed_id, (err, docs) ->
|
||||
collection.findOne _id: feed_id, (err, docs) ->
|
||||
if not err and etag and docs and docs?.color == etag
|
||||
log.debug "Cached: #{feed_id}, etag: #{etag}/#{docs?.color} " + if err then "(err: #{err})" else ""
|
||||
res.sendStatus 304
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
feed_id = parseInt(req.params[0], 10);
|
||||
etag = req.header('If-None-Match');
|
||||
log.debug(`Feed: ${feed_id} ` + (etag ? ` / ${etag}` : ""));
|
||||
return this.collection.findOne({
|
||||
return collection.findOne({
|
||||
_id: feed_id
|
||||
}, function(err, docs) {
|
||||
var body;
|
||||
|
|
Loading…
Add table
Reference in a new issue