[test → dev] Hacer luego de [master → test] #1168

Merged
joan merged 12 commits from test into dev 2022-11-22 13:03:46 +00:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit 77b2f9cbd9 - Show all commits

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
};