@jetthai/cuora 1.1.368 → 1.1.369

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,8 @@
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.369](https://github.com/jetthai/cuora-module/compare/v1.1.368...v1.1.369) (2025-08-06)
6
+
5
7
  ### [1.1.368](https://github.com/jetthai/cuora-module/compare/v1.1.367...v1.1.368) (2025-07-28)
6
8
 
7
9
  ### [1.1.367](https://github.com/jetthai/cuora-module/compare/v1.1.366...v1.1.367) (2025-07-22)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.368",
3
+ "version": "1.1.369",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -424,7 +424,7 @@ export default function (request) {
424
424
  fetchMessages: async (context, event) => {
425
425
  const lang = context.lang
426
426
  const { isRewardListEnable, currentTab, inbox } = JSON.parse(JSON.stringify(context))
427
- if (isRewardListEnable && (currentTab === 'REWARD' || currentTab === 'DIAMOND')) {
427
+ if (isRewardListEnable && (currentTab === 'REWARD' || currentTab === 'DIAMOND' || currentTab === 'FREE_GAME')) {
428
428
  const { data } = await request.send(activity.getRewardList({ count: 30, appSecret, lang }))
429
429
  inbox[currentTab] = { data, page: 0, totalPage: 1 }
430
430
  } else {
@@ -438,6 +438,9 @@ export default function (request) {
438
438
  },
439
439
  reFetchMessages: async (context, event) => {
440
440
  const { currentTab, inbox } = JSON.parse(JSON.stringify(context))
441
+
442
+ if (currentTab === 'FREE_GAME') return inbox
443
+
441
444
  const { data, ...rest } = await request.send(mailbox.getMessageList({ type: currentTab, page: 0 }))
442
445
  let formattedData = []
443
446
  formattedData = data?.map((item) => ({ ...item, isSelected: false }))