We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3038fb + 74674cc commit 98c846aCopy full SHA for 98c846a
cds-plugin.js
@@ -7,7 +7,7 @@ cds.once("served", async () => {
7
const production = profiles.includes('production');
8
9
// read notification types
10
- const notificationTypes = readFile(cds.env.requires.notifications.types);
+ const notificationTypes = readFile(cds.env.requires?.notifications?.types);
11
12
if(validateNotificationTypes(notificationTypes)) {
13
if (production) {
lib/utils.js
@@ -43,7 +43,7 @@ function doesKeyExist(obj, key) {
43
function readFile(filePath) {
44
if(!existsSync(filePath)) {
45
console.log(messages.TYPES_FILE_NOT_EXISTS);
46
- return {};
+ return [];
47
}
48
49
return JSON.parse(readFileSync(filePath));
0 commit comments