mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 10:50:13 +01:00
Move every Cards.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
48ba81eb3d
commit
06e374f0ff
6 changed files with 11 additions and 11 deletions
|
|
@ -552,9 +552,9 @@ ReactiveCache = {
|
|||
}
|
||||
return ret;
|
||||
},
|
||||
getCard(idOrFirstObjectSelector, options) {
|
||||
getCard(idOrFirstObjectSelector, options, noCache = false) {
|
||||
let ret;
|
||||
if (Meteor.isServer) {
|
||||
if (Meteor.isServer || noCache === true) {
|
||||
ret = ReactiveCacheServer.getCard(idOrFirstObjectSelector, options);
|
||||
} else {
|
||||
ret = ReactiveCacheClient.getCard(idOrFirstObjectSelector, options);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue