Skip to content

Commit

Permalink
remove ' from where clause
Browse files Browse the repository at this point in the history
  • Loading branch information
ceccode committed Dec 14, 2015
1 parent d257722 commit 9ce05c2
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 @@ -42,7 +42,7 @@ function multitenantPlugin(schema, options) {
function findWhereTenantExistAndIsNotNull(next) {
this.where(tenant, {
$exists: true,
$nin: [null, undefined, '']
$nin: [null, undefined]
});
next();
}
Expand Down

0 comments on commit 9ce05c2

Please sign in to comment.