mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Move every Integrations.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
767d8e66e7
commit
6b7b464acc
4 changed files with 55 additions and 5 deletions
|
@ -177,7 +177,7 @@ if (Meteor.isServer) {
|
|||
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: Integrations.findOne(
|
||||
data: ReactiveCache.getIntegration(
|
||||
{ _id: paramIntId, boardId: paramBoardId },
|
||||
{ fields: { token: 0 } },
|
||||
),
|
||||
|
@ -324,7 +324,7 @@ if (Meteor.isServer) {
|
|||
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: Integrations.findOne(
|
||||
data: ReactiveCache.getIntegration(
|
||||
{ _id: paramIntId, boardId: paramBoardId },
|
||||
{ fields: { _id: 1, activities: 1 } },
|
||||
),
|
||||
|
@ -364,7 +364,7 @@ if (Meteor.isServer) {
|
|||
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: Integrations.findOne(
|
||||
data: ReactiveCache.getIntegration(
|
||||
{ _id: paramIntId, boardId: paramBoardId },
|
||||
{ fields: { _id: 1, activities: 1 } },
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue