소스 검색

Fix order of `site` doc in feeds view

Markus Ochel 12 년 전
부모
커밋
97e9bbcef3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      site/server/views.coffee

+ 1 - 1
site/server/views.coffee

@@ -80,7 +80,7 @@ exports.docs_for_feeds =
     types = ['essay','scene','video','profile']
     if doc.type is 'site'
       # Add the site doc
-      emit [doc._id, null], null
+      emit [doc._id, {}], null
     else if doc.site and doc.type and types.indexOf(doc.type) >= 0 and doc.published_at and doc.published
       timestamp = new Date(doc.published_at).getTime()
       emit [doc.site, timestamp, doc._id, {}], null