Skip to content

Commit

Permalink
Fix parsing index compound keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Mensky authored Mar 14, 2018
1 parent 09fa02e commit 6199d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function beautify(error, collection, values, messages, defaultMessage) {
var matches = errorRegex.exec(error.message);

if (matches) {
var indexName = matches[1];
var indexName = matches[1].split('$').pop();

// Retrieve that index's list of fields
onSuberrors = getIndexes(collection).then(function (indexes) {
Expand Down

0 comments on commit 6199d64

Please sign in to comment.