cosmetics

This commit is contained in:
Daniel
2021-02-26 09:30:56 +01:00
parent 2552269cec
commit d073403010

View File

@@ -5,9 +5,9 @@ module.exports = class extends cds.build.Task {
async build ({src='*'}) {
this.log (`Generating edmx output for '${src}'...`)
const csn = await this.model(src)
return Promise.all (csn.services.map (srv => {
const edmx = cds.compile(csn).to.edmx({service:srv.name})
return this.write(edmx).to(`{srv}/src/main/resources/${srv.name}.edmx`)
return Promise.all (csn.services.map (({name:service}) => {
const edmx = cds.compile(csn).to.edmx({service})
return this.write(edmx).to(`{srv}/src/main/resources/${service}.edmx`)
}))
}