浏览代码

Added dates & assignees to REST API calls #3145

I have added the dates (stat, due, end) and the assignees to the output of the REST API Calls
GitGramm 5 年之前
父节点
当前提交
d2a7a82870
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      models/cards.js

+ 8 - 0
models/cards.js

@@ -2168,6 +2168,10 @@ if (Meteor.isServer) {
             title: doc.title,
             description: doc.description,
             listId: doc.listId,
+            startAt:doc.startAt,
+            dueAt: doc.dueAt,
+            endAt: doc.endAt,
+            assignees: doc.assignees,
           };
         }),
       });
@@ -2204,6 +2208,10 @@ if (Meteor.isServer) {
           _id: doc._id,
           title: doc.title,
           description: doc.description,
+          startAt:doc.startAt,
+          dueAt: doc.dueAt,
+          endAt: doc.endAt,
+          assignees: doc.assignees,
         };
       }),
     });