1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-23 15:19:44 +02:00

feat: SMTP integration and email notifications (#631)

This commit is contained in:
Edouard 2024-03-22 00:14:09 +01:00 committed by Maksim Eltyshev
parent 0176650f67
commit bcd3ea86e8
14 changed files with 188 additions and 4 deletions

View file

@ -79,12 +79,12 @@ module.exports = {
async fn(inputs) {
const { currentUser } = this.req;
const { list } = await sails.helpers.lists
const { board, list } = await sails.helpers.lists
.getProjectPath(inputs.listId)
.intercept('pathNotFound', () => Errors.LIST_NOT_FOUND);
const boardMembership = await BoardMembership.findOne({
boardId: list.boardId,
boardId: board.id,
userId: currentUser.id,
});
@ -100,6 +100,7 @@ module.exports = {
const card = await sails.helpers.cards.createOne
.with({
board,
values: {
...values,
list,

View file

@ -34,12 +34,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,
});
@ -57,6 +57,7 @@ module.exports = {
};
const action = await sails.helpers.actions.createOne.with({
board,
values: {
...values,
card,