mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 07:09:44 +02:00
parent
4124ab17d2
commit
3779bdb053
38 changed files with 416 additions and 9 deletions
|
@ -45,7 +45,7 @@ module.exports = {
|
|||
async fn(inputs) {
|
||||
const { currentUser } = this.req;
|
||||
|
||||
const { card } = await sails.helpers.cards
|
||||
const { card, board } = await sails.helpers.cards
|
||||
.getProjectPath(inputs.cardId)
|
||||
.intercept('pathNotFound', () => Errors.CARD_NOT_FOUND);
|
||||
|
||||
|
@ -74,6 +74,7 @@ module.exports = {
|
|||
card,
|
||||
userId: inputs.userId,
|
||||
},
|
||||
board,
|
||||
request: this.req,
|
||||
})
|
||||
.intercept('userAlreadyCardMember', () => Errors.USER_ALREADY_CARD_MEMBER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue