Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix unique string with capital letters removal.

Signed-off-by: Moritz Peters <maritz.peters@gmail.com>
  • Loading branch information...
commit 05d339a00a512c56a4f6cae64b5317e82effc774 1 parent d67e923
Midworld Kim midworld authored committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/store.js
5 lib/store.js
View
@@ -306,8 +306,11 @@ var __realDelete = function __realDelete(silent, callback) {
for (p in this.properties) {
if (this.properties.hasOwnProperty(p)) {
if (this.properties[p].unique) {
+ var propLower = this.properties[p].type === 'string' ?
+ this.properties[p].__oldValue.toLowerCase() :
+ this.properties[p].__oldValue;
multi.del(Nohm.prefix.unique + this.modelName + ':' + p + ':' +
- this.properties[p].__oldValue);
+ propLower);
}
if (self.properties[p].index) {
multi.srem(Nohm.prefix.index + self.modelName + ':' + p + ':' +
Please sign in to comment.
Something went wrong with that request. Please try again.