Skip to content

Commit b60782c

Browse files
KlausUngerodrotbohm
authored andcommitted
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.
1 parent 181b687 commit b60782c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ This is an example view for the `findByLastname` method:
9292

9393
```javascript
9494
function (doc, meta) {
95-
if(doc._class == "com.example.entity.User" && doc.firstname) {
96-
emit(doc.firstname, null);
95+
if(doc._class == "com.example.entity.User" && doc.lastname) {
96+
emit(doc.lastname, null);
9797
}
9898
}
9999
```

0 commit comments

Comments
 (0)