user emailUser
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-11-18 10:25:25 +01:00
parent d70d848717
commit 77b2f9cbd9
1 changed files with 5 additions and 2 deletions

View File

@ -34,7 +34,10 @@ module.exports = Self => {
include: {
relation: 'user',
scope: {
fields: ['name', 'lang']
fields: ['name', 'email', 'lang'],
include: {
relation: 'emailUser'
}
}
}
}
@ -55,7 +58,7 @@ module.exports = Self => {
for (const notificationUser of queue.notification().subscription()) {
try {
const sendParams = {
recipient: notificationUser.user().name + '@verdnatura.es',
recipient: notificationUser.user().emailUser().email,
lang: notificationUser.user().lang
};