1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-10 16:05:35 +02:00

feat(create-one.js): add case for MOVE_CARD action type in sendEmailNotification function to support email notifications when a card is moved

This commit is contained in:
Edouard Richard 2024-03-20 12:36:27 +01:00
parent 5704bce542
commit 80499e68d5

View file

@ -46,6 +46,16 @@ async function sendEmailNotification({ notification, action }) {
`<p>${action.data.text}</p>`,
};
break;
case Action.Types.MOVE_CARD:
email = {
subject: `${actionUser.name} moved the card ${actionCard.name} from ${action.data.fromList.name} to ${action.data.toList.name} on ${actionBoard.name}`,
html:
`<p>${actionUser.name} moved the card ` +
`<a href="${process.env.BASE_URL}/cards/${actionCard.id}">${actionCard.name}</a> ` +
`from ${action.data.fromList.name} to ${action.data.toList.name} ` +
`on <a href="${process.env.BASE_URL}/boards/${actionBoard.id}">${actionBoard.name}</a></p>`,
};
break;
default:
break;