@@ -39,7 +39,7 @@ export default {
39
39
const { data : { items : { item : items } } } = await Service
40
40
. post ( context , Constants . Notification . ENDPOINT_PATH , notification . asPropertiesMap ( ) ) ;
41
41
42
- const [ item ] = items . filter ( ( { type } ) => type === 'VendorNotification ' ) ;
42
+ const [ item ] = items . filter ( ( { type } ) => type === 'Notification ' ) ;
43
43
44
44
return itemToNotification ( item ) ;
45
45
} ,
@@ -63,7 +63,7 @@ export default {
63
63
const { data : { items : { item : items } } } = await Service
64
64
. get ( context , `${ Constants . Notification . ENDPOINT_PATH } /${ number } ` ) ;
65
65
66
- const [ item ] = items . filter ( ( { type } ) => type === 'VendorNotification ' ) ;
66
+ const [ item ] = items . filter ( ( { type } ) => type === 'Notification ' ) ;
67
67
68
68
return itemToNotification ( item ) ;
69
69
} ,
@@ -92,7 +92,7 @@ export default {
92
92
const { data } = await Service . get ( context , Constants . Notification . ENDPOINT_PATH , queryParams ) ;
93
93
94
94
return Page (
95
- data . items . item . filter ( ( { type } ) => type === 'VendorNotification ' ) . map ( ( v ) => itemToNotification ( v ) ) ,
95
+ data . items . item . filter ( ( { type } ) => type === 'Notification ' ) . map ( ( v ) => itemToNotification ( v ) ) ,
96
96
data . items . pagenumber ,
97
97
data . items . itemsnumber ,
98
98
data . items . totalpages ,
@@ -122,7 +122,7 @@ export default {
122
122
const { data : { items : { item : items } } } = await Service
123
123
. post ( context , `${ Constants . Notification . ENDPOINT_PATH } /${ number } ` , notification . asPropertiesMap ( ) ) ;
124
124
125
- const [ item ] = items . filter ( ( { type } ) => type === 'VendorNotification ' ) ;
125
+ const [ item ] = items . filter ( ( { type } ) => type === 'Notification ' ) ;
126
126
127
127
return itemToNotification ( item ) ;
128
128
} ,
0 commit comments