Skip to content

Commit

Permalink
CDS 8 Update (#44)
Browse files Browse the repository at this point in the history
* cds 8 changes
  • Loading branch information
suchitrapanda authored Nov 4, 2024
1 parent 76bf2fd commit 4992bc8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions db/schema.cds
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ entity StatusValues {

annotate Notifications with {
businessPartnerId @title:'BusinessPartner ID' @readonly;
verificationStatus @title:'Verfication Status' @assert.enum;
}
verificationStatus @title:'Verfication Status';
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
"dependencies": {
"@sap-cloud-sdk/http-client": "^3.2.0",
"@sap-cloud-sdk/util": "^3.2.0",
"@sap/cds": "^7",
"@sap/cds-hana": "^2",
"@sap/xb-msg-amqp-v100": "^0.9.39",
"@sap/xsenv": "^3.1.1",
"@sap/xssec": "^3.6.0",
"@sap/cds": "^8",
"@cap-js/hana": "^1",
"@sap/xb-msg-amqp-v100": "^0.9.39",
"@sap/xssec": "^4",
"express": "^4",
"grunt": "^1.5.3",
"npm": "^8.11.0",
Expand Down
2 changes: 1 addition & 1 deletion srv/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const cds = require('@sap/cds');
const addressResult = resultJoin.addresses[0];
const statusValues={"N":"NEW", "P":"PROCESS", "INV":"INVALID", "V":"VERIFIED"}

if(addressResult.isModified){
if(addressResult && addressResult.isModified){
let payload = {
streetName: addressResult.streetName,
postalCode: addressResult.postalCode
Expand Down

0 comments on commit 4992bc8

Please sign in to comment.