mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
Add username to user
This commit is contained in:
@@ -7,21 +7,21 @@ module.exports = {
|
||||
},
|
||||
|
||||
exits: {
|
||||
notFound: {},
|
||||
pathNotFound: {},
|
||||
},
|
||||
|
||||
async fn(inputs, exits) {
|
||||
const board = await Board.findOne(inputs.criteria);
|
||||
|
||||
if (!board) {
|
||||
throw 'notFound';
|
||||
throw 'pathNotFound';
|
||||
}
|
||||
|
||||
const project = await Project.findOne(board.projectId);
|
||||
|
||||
if (!project) {
|
||||
throw {
|
||||
notFound: {
|
||||
pathNotFound: {
|
||||
board,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user