mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 21:29:43 +02:00
feat: SMTP integration and email notifications (#631)
This commit is contained in:
parent
0bb2c71780
commit
e14ae09e47
14 changed files with 188 additions and 4 deletions
|
@ -32,12 +32,12 @@ module.exports = {
|
|||
async fn(inputs) {
|
||||
const { currentUser } = this.req;
|
||||
|
||||
const { card } = await sails.helpers.cards
|
||||
const { board, card } = await sails.helpers.cards
|
||||
.getProjectPath(inputs.cardId)
|
||||
.intercept('pathNotFound', () => Errors.CARD_NOT_FOUND);
|
||||
|
||||
const boardMembership = await BoardMembership.findOne({
|
||||
boardId: card.boardId,
|
||||
boardId: board.id,
|
||||
userId: currentUser.id,
|
||||
});
|
||||
|
||||
|
@ -55,6 +55,7 @@ module.exports = {
|
|||
};
|
||||
|
||||
const action = await sails.helpers.actions.createOne.with({
|
||||
board,
|
||||
values: {
|
||||
...values,
|
||||
card,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue