From d0734030108b1c3165d51d887c0f45c79f172888 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 26 Feb 2021 09:30:56 +0100 Subject: [PATCH] cosmetics --- fiori/test/build/build-task.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fiori/test/build/build-task.js b/fiori/test/build/build-task.js index 7b0a2d79..dfeaa18d 100644 --- a/fiori/test/build/build-task.js +++ b/fiori/test/build/build-task.js @@ -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`) })) }