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,4 +1,4 @@
const cds = require('@sap/cds')
module.exports = cds.service.impl((srv) => {
import cds from '@sap/cds'
export default cds.service.impl((srv) => {
srv.on('READ', 'me', ({ tenant, user, locale }) => ({ id: user.id, locale, tenant }))
})