Skip to content

Commit edc57a6

Browse files
committed
cleanup
1 parent 989151f commit edc57a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/NotificationService.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
const { data: { items: { item: items } } } = await Service
4040
.post(context, Constants.Notification.ENDPOINT_PATH, notification.asPropertiesMap());
4141

42-
const [item] = items.filter(({ type }) => type === 'VendorNotification');
42+
const [item] = items.filter(({ type }) => type === 'Notification');
4343

4444
return itemToNotification(item);
4545
},
@@ -63,7 +63,7 @@ export default {
6363
const { data: { items: { item: items } } } = await Service
6464
.get(context, `${Constants.Notification.ENDPOINT_PATH}/${number}`);
6565

66-
const [item] = items.filter(({ type }) => type === 'VendorNotification');
66+
const [item] = items.filter(({ type }) => type === 'Notification');
6767

6868
return itemToNotification(item);
6969
},
@@ -92,7 +92,7 @@ export default {
9292
const { data } = await Service.get(context, Constants.Notification.ENDPOINT_PATH, queryParams);
9393

9494
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)),
9696
data.items.pagenumber,
9797
data.items.itemsnumber,
9898
data.items.totalpages,
@@ -122,7 +122,7 @@ export default {
122122
const { data: { items: { item: items } } } = await Service
123123
.post(context, `${Constants.Notification.ENDPOINT_PATH}/${number}`, notification.asPropertiesMap());
124124

125-
const [item] = items.filter(({ type }) => type === 'VendorNotification');
125+
const [item] = items.filter(({ type }) => type === 'Notification');
126126

127127
return itemToNotification(item);
128128
},

0 commit comments

Comments
 (0)