mirror of
https://github.com/wekan/wekan.git
synced 2026-02-19 22:48:07 +01:00
Move every CustomFields.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
9e557f6887
commit
806ad78637
3 changed files with 5 additions and 5 deletions
|
|
@ -337,7 +337,7 @@ if (Meteor.isServer) {
|
|||
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
||||
JsonRoutes.sendResult(res, {
|
||||
code: 200,
|
||||
data: CustomFields.findOne({
|
||||
data: ReactiveCache.getCustomField({
|
||||
_id: paramCustomFieldId,
|
||||
boardIds: { $in: [paramBoardId] },
|
||||
}),
|
||||
|
|
@ -377,7 +377,7 @@ if (Meteor.isServer) {
|
|||
boardIds: [board._id],
|
||||
});
|
||||
|
||||
const customField = CustomFields.findOne({
|
||||
const customField = ReactiveCache.getCustomField({
|
||||
_id: id,
|
||||
boardIds: { $in: [paramBoardId] },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue