From 48ee810999abd65262050a848ae0f12e9d3ebf16 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 8849635d..206ae3f3 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); } } ```