summaryrefslogtreecommitdiffstats
path: root/models/customFields.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/customFields.js')
-rw-r--r--models/customFields.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/models/customFields.js b/models/customFields.js
index 38481d8c..203e46d0 100644
--- a/models/customFields.js
+++ b/models/customFields.js
@@ -87,7 +87,13 @@ if (Meteor.isServer) {
const paramBoardId = req.params.boardId;
JsonRoutes.sendResult(res, {
code: 200,
- data: CustomFields.find({ boardId: paramBoardId }),
+ data: CustomFields.find({ boardId: paramBoardId }).map(function (cf) {
+ return {
+ _id: cf._id,
+ name: cf.name,
+ type: cf.type,
+ };
+ }),
});
});