mirror of
https://github.com/plankanban/planka.git
synced 2025-12-23 09:15:09 +03:00
ref: Remove board types, refactoring
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
const idOrIdsValidator = (value) => _.isString(value) || _.every(value, _.isString);
|
||||
|
||||
module.exports = {
|
||||
inputs: {
|
||||
idOrIds: {
|
||||
type: 'json',
|
||||
custom: (value) => _.isString(value) || _.every(value, _.isString),
|
||||
custom: idOrIdsValidator,
|
||||
required: true,
|
||||
},
|
||||
exceptCardIdOrIds: {
|
||||
type: 'json',
|
||||
custom: (value) => _.isString(value) || _.every(value, _.isString),
|
||||
custom: idOrIdsValidator,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -22,6 +24,6 @@ module.exports = {
|
||||
};
|
||||
}
|
||||
|
||||
return sails.helpers.cards.getMany(criteria, 'position');
|
||||
return sails.helpers.cards.getMany(criteria);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user