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.
This commit is contained in:
committed by
Oliver Gierke
parent
181b68798b
commit
b60782c3c1
@@ -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);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user