trying esm modules

This commit is contained in:
Daniel
2022-05-12 01:44:09 +02:00
parent ee4dcf116c
commit 9370d0544e
6 changed files with 10 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
const cds = require('@sap/cds')
import cds from '@sap/cds'
module.exports = cds.service.impl (function(){
export default cds.service.impl (function(){
this.before ('NEW','Authors', genid)
this.before ('NEW','Books', genid)
})