@jetthai/cuora 1.0.204 → 1.0.205
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.0.205](https://github.com/jetthai/cuora-module/compare/v1.0.204...v1.0.205) (2022-11-23)
|
|
6
|
+
|
|
5
7
|
### [1.0.204](https://github.com/jetthai/cuora-module/compare/v1.0.203...v1.0.204) (2022-11-21)
|
|
6
8
|
|
|
7
9
|
### [1.0.203](https://github.com/jetthai/cuora-module/compare/v1.0.202...v1.0.203) (2022-11-17)
|
package/package.json
CHANGED
|
@@ -120,8 +120,8 @@ export default function (request) {
|
|
|
120
120
|
}
|
|
121
121
|
}),
|
|
122
122
|
setInitialData: assign((context, event) => {
|
|
123
|
-
const { commission = 0, downLine = 0, activeDownLine = 0 } = event.data[
|
|
124
|
-
const { levelTable = [], pastTable = [] } = event.data[
|
|
123
|
+
const { commission = 0, downLine = 0, activeDownLine = 0 } = event.data[0] || {}
|
|
124
|
+
const { levelTable = [], pastTable = [] } = event.data[1] || {}
|
|
125
125
|
return {
|
|
126
126
|
commission,
|
|
127
127
|
downLine,
|
|
@@ -147,7 +147,6 @@ export default function (request) {
|
|
|
147
147
|
}),
|
|
148
148
|
setLevelSearch: assign((context, event) => {
|
|
149
149
|
const { level, page } = event.data
|
|
150
|
-
console.log('Module:', level, page)
|
|
151
150
|
return {
|
|
152
151
|
currentLevel: level,
|
|
153
152
|
page
|
|
@@ -182,7 +181,6 @@ export default function (request) {
|
|
|
182
181
|
},
|
|
183
182
|
fetchLevelDownLineList: async (context, event) => {
|
|
184
183
|
const { currentLevel, page } = context
|
|
185
|
-
console.log('API:', currentLevel, page)
|
|
186
184
|
return await request.send(user.getAffiliateDashboardList({ level: currentLevel, page, row: 10 }))
|
|
187
185
|
}
|
|
188
186
|
},
|