Streamlined eslint usage for eslint9 w/ cds8 (#719)
* Streamlined eslint usage * import from @sap/cds instead of @sap/cds/lib * Using @sap/cds/eslint.js * eslint.config.mjs aktualisieren * Adjusted eslint usage for eslint9 with cds8
This commit is contained in:
@@ -50,7 +50,6 @@ const reviews = Vue.createApp ({
|
||||
const res = await POST(`/Reviews`,review)
|
||||
reviews.ID = res.data.ID
|
||||
} else {
|
||||
console.trace()
|
||||
await PUT(`/Reviews/${review.ID}`,review)
|
||||
}
|
||||
reviews.message = { succeeded: 'Your review was submitted successfully. Thanks.' }
|
||||
|
||||
@@ -15,7 +15,7 @@ module.exports = cds.service.impl (function(){
|
||||
const { count, rating } = await cds.tx(req) .run (
|
||||
SELECT.one `round(avg(rating),2) as rating, count(*) as count` .from (Reviews) .where ({subject})
|
||||
)
|
||||
global.it || console.log ('< emitting:', 'reviewed', { subject, count, rating })
|
||||
global.it || console.log ('< emitting:', 'reviewed', { subject, count, rating }) // eslint-disable-line no-console
|
||||
await this.emit ('reviewed', { subject, count, rating })
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user