mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +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
|
|
@ -648,7 +648,7 @@ Meteor.publish('brokenCards', function(sessionId) {
|
|||
Meteor.publish('nextPage', function(sessionId) {
|
||||
check(sessionId, String);
|
||||
|
||||
const session = SessionData.findOne({ sessionId });
|
||||
const session = ReactiveCache.getSessionData({ sessionId });
|
||||
const projection = session.getProjection();
|
||||
projection.skip = session.lastHit;
|
||||
|
||||
|
|
@ -658,7 +658,7 @@ Meteor.publish('nextPage', function(sessionId) {
|
|||
Meteor.publish('previousPage', function(sessionId) {
|
||||
check(sessionId, String);
|
||||
|
||||
const session = SessionData.findOne({ sessionId });
|
||||
const session = ReactiveCache.getSessionData({ sessionId });
|
||||
const projection = session.getProjection();
|
||||
projection.skip = session.lastHit - session.resultsCount - projection.limit;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue