Skip to content

Commit e066543

Browse files
committed
correcting the configuration props in plugin
1 parent 143a821 commit e066543

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cds-plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ cds.once("served", () => {
1818
/**
1919
* TODO: Decide the properties to be added in the alerts section for notificationtype files.
2020
*/
21-
if (cds.requires?.notifications?.notificationTypes) {
21+
if (cds.requires?.notifications?.types) {
2222
let notificationTypes = readFileContent(
23-
cds.requires.alerts.notificationTypes
23+
cds.requires.notifications.types
2424
);
2525
if (validateNotificationTypes(notificationTypes)) {
2626
notificationTypes.forEach((oNotificationType) => {

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function validateNotificationTypes(notificationTypes = {}) {
1515

1616
function readFileContent(filePath) {
1717
return JSON.parse(
18-
fs.readFileSync(cds.requires.alerts.notificationTypes)
18+
fs.readFileSync(cds.requires.notifications.types)
1919
);
2020
}
2121

srv/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
22
* TODO: Add the entry point for the Plugin Service here.
33
* We will branch out for development and production profile here
4-
*/
4+
*/

0 commit comments

Comments
 (0)