summaryrefslogtreecommitdiffstats
path: root/models/customFields.js
diff options
context:
space:
mode:
authorIgnatz <computer-freak94@gmx.de>2018-05-18 10:24:51 +0200
committerIgnatz <computer-freak94@gmx.de>2018-05-18 10:24:51 +0200
commitd6cfac0122dc5e6819c82f73c728488e0600cb70 (patch)
tree4f392116329e8e7cbd8e679837ce90fa7f5a0ee3 /models/customFields.js
parentc1d2e27c092f9bce4a9982d6b714b442dbf66a4b (diff)
downloadwekan-d6cfac0122dc5e6819c82f73c728488e0600cb70.tar.gz
wekan-d6cfac0122dc5e6819c82f73c728488e0600cb70.tar.bz2
wekan-d6cfac0122dc5e6819c82f73c728488e0600cb70.zip
linter corrections
Diffstat (limited to 'models/customFields.js')
-rw-r--r--models/customFields.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/models/customFields.js b/models/customFields.js
index 57875b6e..6c5fe7c4 100644
--- a/models/customFields.js
+++ b/models/customFields.js
@@ -9,14 +9,14 @@ CustomFields.attachSchema(new SimpleSchema({
},
type: {
type: String,
- allowedValues: ['text', 'number', 'date', 'dropdown']
+ allowedValues: ['text', 'number', 'date', 'dropdown'],
},
settings: {
type: Object,
},
'settings.dropdownItems': {
type: [Object],
- optional: true
+ optional: true,
},
'settings.dropdownItems.$': {
type: new SimpleSchema({
@@ -26,11 +26,11 @@ CustomFields.attachSchema(new SimpleSchema({
name: {
type: String,
},
- })
+ }),
},
showOnCard: {
type: Boolean,
- }
+ },
}));
CustomFields.allow({
@@ -76,16 +76,16 @@ if (Meteor.isServer) {
//CUSTOM FIELD REST API
if (Meteor.isServer) {
- JsonRoutes.add('GET', '/api/boards/:boardId/custom-fields', function (req, res, next) {
+ JsonRoutes.add('GET', '/api/boards/:boardId/custom-fields', function (req, res) {
Authentication.checkUserId( req.userId);
const paramBoardId = req.params.boardId;
JsonRoutes.sendResult(res, {
code: 200,
- data: CustomFields.find({ boardId: paramBoardId })
+ data: CustomFields.find({ boardId: paramBoardId }),
});
});
- JsonRoutes.add('GET', '/api/boards/:boardId/custom-fields/:customFieldId', function (req, res, next) {
+ JsonRoutes.add('GET', '/api/boards/:boardId/custom-fields/:customFieldId', function (req, res) {
Authentication.checkUserId( req.userId);
const paramBoardId = req.params.boardId;
const paramCustomFieldId = req.params.customFieldId;
@@ -95,7 +95,7 @@ if (Meteor.isServer) {
});
});
- JsonRoutes.add('POST', '/api/boards/:boardId/custom-fields', function (req, res, next) {
+ JsonRoutes.add('POST', '/api/boards/:boardId/custom-fields', function (req, res) {
Authentication.checkUserId( req.userId);
const paramBoardId = req.params.boardId;
const id = CustomFields.direct.insert({
@@ -117,7 +117,7 @@ if (Meteor.isServer) {
});
});
- JsonRoutes.add('DELETE', '/api/boards/:boardId/custom-fields/:customFieldId', function (req, res, next) {
+ JsonRoutes.add('DELETE', '/api/boards/:boardId/custom-fields/:customFieldId', function (req, res) {
Authentication.checkUserId( req.userId);
const paramBoardId = req.params.boardId;
const id = req.params.customFieldId;