Skip to content

Commit

Permalink
Do not cache the users openHAB instance result (openhab#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSW authored and marziman committed May 23, 2017
1 parent f7e1aaf commit 5484be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ UserSchema.static('authenticate', function (username, password, callback) {
});

UserSchema.methods.openhab = function(callback) {
Openhab.findOne({account: this.account}).cache().exec(callback);
Openhab.findOne({account: this.account}).exec(callback);
}

UserSchema.index({account:1, role:1});
Expand Down

0 comments on commit 5484be9

Please sign in to comment.