view backend/couchdb/CouchApp/feedworm/views/feeds/map.js @ 204:4cb22b47b659

Due to a bug in CouchDB it's possible that a view still references deleted documents. Detect this case and don't add NoneType objects into the list of feeds.
author dirk
date Tue, 03 Apr 2012 05:35:13 +0200
parents a5bda54309ba
children
line wrap: on
line source

function(doc)
{
    if (doc.doctype == "feed")
    {
        emit(doc._id, doc)
    }
}