Skip to content

Commit 4992bc8

Browse files
CDS 8 Update (#44)
* cds 8 changes
1 parent 76bf2fd commit 4992bc8

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

db/schema.cds

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ entity StatusValues {
2828

2929
annotate Notifications with {
3030
businessPartnerId @title:'BusinessPartner ID' @readonly;
31-
verificationStatus @title:'Verfication Status' @assert.enum;
32-
}
31+
verificationStatus @title:'Verfication Status';
32+
}

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
"dependencies": {
77
"@sap-cloud-sdk/http-client": "^3.2.0",
88
"@sap-cloud-sdk/util": "^3.2.0",
9-
"@sap/cds": "^7",
10-
"@sap/cds-hana": "^2",
11-
"@sap/xb-msg-amqp-v100": "^0.9.39",
12-
"@sap/xsenv": "^3.1.1",
13-
"@sap/xssec": "^3.6.0",
9+
"@sap/cds": "^8",
10+
"@cap-js/hana": "^1",
11+
"@sap/xb-msg-amqp-v100": "^0.9.39",
12+
"@sap/xssec": "^4",
1413
"express": "^4",
1514
"grunt": "^1.5.3",
1615
"npm": "^8.11.0",

srv/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const cds = require('@sap/cds');
121121
const addressResult = resultJoin.addresses[0];
122122
const statusValues={"N":"NEW", "P":"PROCESS", "INV":"INVALID", "V":"VERIFIED"}
123123

124-
if(addressResult.isModified){
124+
if(addressResult && addressResult.isModified){
125125
let payload = {
126126
streetName: addressResult.streetName,
127127
postalCode: addressResult.postalCode

0 commit comments

Comments
 (0)