user emailUser
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
d70d848717
commit
77b2f9cbd9
|
@ -34,7 +34,10 @@ module.exports = Self => {
|
||||||
include: {
|
include: {
|
||||||
relation: 'user',
|
relation: 'user',
|
||||||
scope: {
|
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()) {
|
for (const notificationUser of queue.notification().subscription()) {
|
||||||
try {
|
try {
|
||||||
const sendParams = {
|
const sendParams = {
|
||||||
recipient: notificationUser.user().name + '@verdnatura.es',
|
recipient: notificationUser.user().emailUser().email,
|
||||||
lang: notificationUser.user().lang
|
lang: notificationUser.user().lang
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue