diff --git a/incidents-app b/incidents-app index 496abff..d1b91db 160000 --- a/incidents-app +++ b/incidents-app @@ -1 +1 @@ -Subproject commit 496abffcf9c3d4558835f4bbd8d546761d91aaa7 +Subproject commit d1b91db3c7ef5125e4d82a3de0cc9ca6f6614407 diff --git a/samples/notifications/srv/processor-service.js b/samples/notifications/srv/processor-service.js index 4bcc151..852465a 100644 --- a/samples/notifications/srv/processor-service.js +++ b/samples/notifications/srv/processor-service.js @@ -42,7 +42,7 @@ module.exports = class ProcessorService extends cds.ApplicationService { }) - const { Customers } = cds.entities + const { Customers, Supporters } = cds.entities const customer4 = async incident => { let customer = await SELECT.from (Customers, incident.customer_ID, c => { c.firstName, c.lastName, c.email @@ -53,7 +53,7 @@ module.exports = class ProcessorService extends cds.ApplicationService { } // Fake supporters for demo purposes - const supporters4 = () => [ cds.context.user.id ] + const supporters4 = () => SELECT('email').from(Supporters).then(each => each.email) // return super.init() }