mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Move every SessionData.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
08e3ca3435
commit
49071ca5fd
3 changed files with 22 additions and 4 deletions
|
|
@ -155,6 +155,14 @@ ReactiveCacheServer = {
|
|||
const ret = Integrations.find(selector, options).fetch();
|
||||
return ret;
|
||||
},
|
||||
getSessionData(idOrFirstObjectSelector, options) {
|
||||
const ret = SessionData.findOne(idOrFirstObjectSelector, options);
|
||||
return ret;
|
||||
},
|
||||
getSessionDatas(selector, options) {
|
||||
const ret = SessionData.find(selector, options).fetch();
|
||||
return ret;
|
||||
},
|
||||
getCurrentSetting() {
|
||||
const ret = Settings.findOne();
|
||||
return ret;
|
||||
|
|
@ -996,6 +1004,16 @@ ReactiveCache = {
|
|||
}
|
||||
return ret;
|
||||
},
|
||||
getSessionData(idOrFirstObjectSelector, options) {
|
||||
// no reactive cache, otherwise global search will not work anymore
|
||||
let ret = ReactiveCacheServer.getSessionData(idOrFirstObjectSelector, options);
|
||||
return ret;
|
||||
},
|
||||
getSessionDatas(selector, options) {
|
||||
// no reactive cache, otherwise global search will not work anymore
|
||||
let ret = ReactiveCacheServer.getSessionDatas(selector, options);
|
||||
return ret;
|
||||
},
|
||||
getCurrentSetting() {
|
||||
let ret;
|
||||
if (Meteor.isServer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue