Skip to content

Commit

Permalink
Merge pull request #74 from cap-js/update-dependencies-fix-custom-han…
Browse files Browse the repository at this point in the history
…dler

update dependencies, run custom handler on update
  • Loading branch information
DanSchlachter authored Aug 9, 2024
2 parents 693865c + 66ef24f commit b610b8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"dummy": 0
},
"dependencies": {
"@sap/cds": ">=7",
"@sap/cds": ">=8",
"express": "^4"
},
"devDependencies": {
"@cap-js/sqlite": "^1.0.1",
"@sap/ux-specification": "^1.108.4",
"axios": "^1.4.0",
"@cap-js/sqlite": "^1.7.3",
"@sap/ux-specification": "^1.120.16",
"axios": "^1.7.3",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"chai-subset": "^1.6.0"
Expand Down
2 changes: 1 addition & 1 deletion srv/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ProcessorService extends cds.ApplicationService {
/** Registering custom event handlers */
init() {
this.before('UPDATE', 'Incidents', req => this.onUpdate(req))
this.before('CREATE', 'Incidents', req => this.changeUrgencyDueToSubject(req.data))
this.before(['CREATE', 'UPDATE'], 'Incidents', req => this.changeUrgencyDueToSubject(req.data))
return super.init()
}

Expand Down

0 comments on commit b610b8d

Please sign in to comment.