mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13:23 +03:00
Project managers, board members, auto-update after reconnection, refactoring
This commit is contained in:
15
server/api/helpers/users/get-project-managers.js
Normal file
15
server/api/helpers/users/get-project-managers.js
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
inputs: {
|
||||
idOrIds: {
|
||||
type: 'json',
|
||||
custom: (value) => _.isString(value) || _.every(value, _.isString),
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
async fn(inputs) {
|
||||
return sails.helpers.projectManagers.getMany({
|
||||
userId: inputs.idOrIds,
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user