ES Modules
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const cds = require('@sap/cds/lib')
|
||||
import cds from '@sap/cds'
|
||||
|
||||
module.exports = class AdminService extends cds.ApplicationService { init(){
|
||||
export class AdminService extends cds.ApplicationService { init(){
|
||||
this.before ('NEW','Authors', genid)
|
||||
this.before ('NEW','Books', genid)
|
||||
return super.init()
|
||||
|
||||
Reference in New Issue
Block a user