review/reviewed -> reviewed

This commit is contained in:
D065023
2020-09-15 16:36:04 +02:00
parent a71aaf75a1
commit d8308fe7a3
3 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ cds.once('served', async ({CatalogService}) => {
return SELECT(columns).from(Reviews).limit(limit).where({subject:String(id)})
}))
messaging.on ('review/reviewed', (msg) => {
messaging.on ('reviewed', (msg) => {
console.debug ('> received:', msg.event, msg.data)
const { subject, rating } = msg.data
return UPDATE(Books,subject).with({rating})