Skip to content

Commit

Permalink
FIX: Preventing duplicate memo names
Browse files Browse the repository at this point in the history
Refactored rewriting rules 5249d4f broke the user-filtered view of diaries. Fixing this rewriting rule restores the feature preventing duplicate memo names (#83).
  • Loading branch information
christophe-lejeune committed Nov 11, 2019
1 parent 3a5d514 commit aabf7ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/rewrites.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function(req2) {
var diary = path[1];
reply.path = "_view/memo_attribute";
reply.query = {
"startkey": '["'+diary+'", "M"]',
"endkey": '["'+diary+'", "M", {}]'
"startkey": '["'+diary+'", "name", '+logged+', "M"]',
"endkey": '["'+diary+'", "name", '+logged+', "M", {}]'
};
break;
case 'memo':
Expand Down

0 comments on commit aabf7ba

Please sign in to comment.