@jetthai/cuora 1.1.102 → 1.1.103

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.103](https://github.com/jetthai/cuora-module/compare/v1.1.102...v1.1.103) (2023-05-23)
6
+
5
7
  ### [1.1.102](https://github.com/jetthai/cuora-module/compare/v1.1.101...v1.1.102) (2023-05-23)
6
8
 
7
9
  ### [1.1.101](https://github.com/jetthai/cuora-module/compare/v1.1.100...v1.1.101) (2023-05-22)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.102",
3
+ "version": "1.1.103",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -43,9 +43,8 @@ export default function (request, context) {
43
43
  },
44
44
  },
45
45
  loaded: {
46
- always: [{ target: 'limitDepositedUser', cond: 'isDepositedUser' }, { target: 'awardable', cond: 'isAwardable' }, { target: 'awarded' }],
46
+ always: [{ target: 'awardable', cond: 'isAwardable' }, { target: 'awarded' }],
47
47
  },
48
- limitDepositedUser: {},
49
48
  awardable: {
50
49
  entry: 'setDuration',
51
50
  on: {
@@ -139,10 +138,6 @@ export default function (request, context) {
139
138
  }),
140
139
  },
141
140
  guards: {
142
- isDepositedUser: (context, event) => {
143
- const { userType = 0, receiveStatus = 0 } = context.activityDetail
144
- return userType === 1 && receiveStatus === 0
145
- },
146
141
  isAwardable: (context, event) => {
147
142
  return context.activityDetail?.receiveStatus === 2
148
143
  },