@jetthai/cuora 1.1.153 → 1.1.155

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.155](https://github.com/jetthai/cuora-module/compare/v1.1.154...v1.1.155) (2023-08-02)
6
+
7
+ ### [1.1.154](https://github.com/jetthai/cuora-module/compare/v1.1.153...v1.1.154) (2023-08-01)
8
+
5
9
  ### [1.1.153](https://github.com/jetthai/cuora-module/compare/v1.1.152...v1.1.153) (2023-08-01)
6
10
 
7
11
  ### [1.1.152](https://github.com/jetthai/cuora-module/compare/v1.1.151...v1.1.152) (2023-07-31)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.153",
3
+ "version": "1.1.155",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -140,6 +140,8 @@ export default function (request) {
140
140
  return { activityList: data, promotionList }
141
141
  },
142
142
  fetchActivityDetailList: async (context, event) => {
143
+ await new Promise((resolve) => setTimeout(resolve, 1000)) // delay 1 second
144
+
143
145
  const { activityList = [], detailNeededActivityTypes } = context
144
146
  const filteredActivityList = activityList.filter((activity) => detailNeededActivityTypes.includes(activity.activityType))
145
147
  return await Promise.all(
@@ -225,7 +225,7 @@ export default function (request) {
225
225
  }),
226
226
  setAnnouncements: assign((context, event) => {
227
227
  const { data } = event.data
228
- return { announcementList: data }
228
+ return { announcementList: { data } }
229
229
  }),
230
230
  setFeeds: assign((context, event) => {
231
231
  const { announcementList, broadcastList, mailBoxInfo } = event.data