null check on id

This commit is contained in:
James Allen 2014-05-29 12:04:18 +01:00
parent 9f969bba4d
commit e4e14602f1

View file

@ -66,7 +66,7 @@ module.exports = HttpController =
_buildDocView: (doc) ->
return {
_id: doc._id.toString()
_id: doc._id?.toString()
lines: doc.lines
rev: doc.rev
}