@neoimpulse/cap-js-notifications 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/utils.js +2 -2
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -199,9 +199,9 @@ function buildNotification(notificationData) {
199
199
  return;
200
200
  }
201
201
 
202
- if (notificationData.type) {
202
+ if (notificationData) {
203
203
  if (!validateCustomNotifyParameters(
204
- notificationData.type,
204
+ notificationData.NotificationTypeKey,
205
205
  notificationData.recipients,
206
206
  notificationData.properties,
207
207
  notificationData.navigation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neoimpulse/cap-js-notifications",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A CDS plugin to provide an easy action for the notification service",
5
5
  "main": "cds-plugin.js",
6
6
  "scripts": {