From b60782c3c1e1f5f889ac16cf2b082e15b4eb70d8 Mon Sep 17 00:00:00 2001 From: Klaus Unger Date: Thu, 2 Apr 2015 17:33:33 +0200 Subject: [PATCH] DATACOUCH-133 - Fixed typos in readme.md. Fixed the mixup of attributes - the view backing the findByLastname method should emit lastname not firstname. Original pull request: #37. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 08725db8..cec96fc7 100644 --- a/README.md +++ b/README.md @@ -92,8 +92,8 @@ This is an example view for the `findByLastname` method: ```javascript function (doc, meta) { - if(doc._class == "com.example.entity.User" && doc.firstname) { - emit(doc.firstname, null); + if(doc._class == "com.example.entity.User" && doc.lastname) { + emit(doc.lastname, null); } } ```