Skip to content

Commit

Permalink
prepare release 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vl-leon committed Oct 13, 2023
1 parent 244a736 commit d5b58ab
Show file tree
Hide file tree
Showing 7 changed files with 1,136 additions and 80 deletions.
7 changes: 2 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Version 0.3.1 - 2023-xx-xx
### Added
### Changed
## Version 0.3.1 - 2023-10-13
### Fixed

* service
- terminate service process

### Removed
- home directory for Windows OS

## Version 0.3.0 - 2023-09-28
### Changed
Expand Down
4 changes: 3 additions & 1 deletion lib/steps/common/loadModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ async function loadModel(params={}) {
if(params.testOnly) return model;

const cds = require ('@sap/cds');
const csn = await cds.load(model,cds.env) .then (cds.minify) //> separate csn for _init_db
const csn = await cds.load(model) .then (cds.minify);
if(!csn) throw Error("Failed to load the model");
if(!csn.definitions) throw Error("Failed to load the model - missing definitions");
if(Object.keys(csn.definitions).length===0) throw Error("Failed to load the model - empty definitions");
cds.model = cds.compile.for.nodejs(csn);
if(!cds.model) throw Error("Failed to compile the model");
} catch(e) {
Expand Down
Loading

0 comments on commit d5b58ab

Please sign in to comment.