Skip to content

Commit b610b8d

Browse files
Merge pull request #74 from cap-js/update-dependencies-fix-custom-handler
update dependencies, run custom handler on update
2 parents 693865c + 66ef24f commit b610b8d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"dummy": 0
1313
},
1414
"dependencies": {
15-
"@sap/cds": ">=7",
15+
"@sap/cds": ">=8",
1616
"express": "^4"
1717
},
1818
"devDependencies": {
19-
"@cap-js/sqlite": "^1.0.1",
20-
"@sap/ux-specification": "^1.108.4",
21-
"axios": "^1.4.0",
19+
"@cap-js/sqlite": "^1.7.3",
20+
"@sap/ux-specification": "^1.120.16",
21+
"axios": "^1.7.3",
2222
"chai": "^4.3.7",
2323
"chai-as-promised": "^7.1.1",
2424
"chai-subset": "^1.6.0"

srv/services.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class ProcessorService extends cds.ApplicationService {
44
/** Registering custom event handlers */
55
init() {
66
this.before('UPDATE', 'Incidents', req => this.onUpdate(req))
7-
this.before('CREATE', 'Incidents', req => this.changeUrgencyDueToSubject(req.data))
7+
this.before(['CREATE', 'UPDATE'], 'Incidents', req => this.changeUrgencyDueToSubject(req.data))
88
return super.init()
99
}
1010

0 commit comments

Comments
 (0)