mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 17:48:49 +01:00
Move every CustomFields.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)
This commit is contained in:
parent
47c70f03a2
commit
981a641bce
6 changed files with 11 additions and 10 deletions
|
|
@ -307,7 +307,7 @@ if (Meteor.isServer) {
|
|||
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: CustomFields.find({ boardIds: { $in: [paramBoardId] } }).map(
|
||||
data: ReactiveCache.getCustomFields({ boardIds: { $in: [paramBoardId] } }).map(
|
||||
function(cf) {
|
||||
return {
|
||||
_id: cf._id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue