@jetthai/cuora 1.1.104-1 → 1.1.105

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,7 +2,7 @@
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.104-1](https://github.com/jetthai/cuora-module/compare/v1.1.104...v1.1.104-1) (2023-05-31)
5
+ ### [1.1.105](https://github.com/jetthai/cuora-module/compare/v1.1.104...v1.1.105) (2023-05-29)
6
6
 
7
7
  ### [1.1.104](https://github.com/jetthai/cuora-module/compare/v1.1.103...v1.1.104) (2023-05-26)
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.104-1",
3
+ "version": "1.1.105",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -328,7 +328,6 @@ export default function (request) {
328
328
  sentry,
329
329
  hosts: request.hosts,
330
330
  })
331
- sentry.setTag('dt', dt)
332
331
 
333
332
  const affiliateCode = storage.get('ac')
334
333
  const messages = {
@@ -267,7 +267,7 @@ export default function (request, context) {
267
267
  payment.getDepositExpectedResult({
268
268
  method,
269
269
  amount: selectedAmount,
270
- promotionsNo: promotion?.activityNo,
270
+ promotionsNo: promotion?.promotionsNo,
271
271
  })
272
272
  )
273
273
  },
@@ -110,7 +110,6 @@ export default function (request) {
110
110
  authenticate: async (context, event) => {
111
111
  const { channel, subchannel, signUpData } = context
112
112
  const dt = await getDeviceToken({ fpToken, sentry, hosts: request.hosts })
113
- sentry.setTag('dt', dt)
114
113
 
115
114
  const affiliateCode = storage.get('ac')
116
115
  const messages = {
@@ -246,7 +246,7 @@ export default function (request, context) {
246
246
  },
247
247
  submitWithdraw: async (context, event) => {
248
248
  const { currentPayment, selectedUserBank, selectedAmount } = context
249
- const branchTemp = ['GCASH', 'PAYM', 'PIX'].includes(selectedUserBank.bankCode) ? '' : selectedUserBank.branch
249
+ const branchTemp = ['GCASH', 'PAYM'].includes(selectedUserBank.bankCode) ? '' : selectedUserBank.branch
250
250
  return await request.send(
251
251
  payment.submitWithdrawTransactionVN({
252
252
  method: currentPayment.method,
@@ -461,7 +461,7 @@ export default function (request) {
461
461
  submitWithdraw: async (context, event) => {
462
462
  const { bank, amount } = context
463
463
  const { method } = context.paymentDetail[0]
464
- const branchTemp = ['GCASH', 'PAYM', 'PIX'].includes(bank.bankCode) ? '' : bank.branch
464
+ const branchTemp = ['GCASH', 'PAYM'].includes(bank.bankCode) ? '' : bank.branch
465
465
  return await request.send(
466
466
  payment.submitWithdrawTransactionVN({
467
467
  method,
@@ -484,7 +484,7 @@ export default function (request) {
484
484
  submitWithdraw: async (context, event) => {
485
485
  const { bank, amount } = context
486
486
  const { method } = context.paymentDetail[0]
487
- const branchTemp = ['GCASH', 'PAYM', 'PIX'].includes(bank.bankCode) ? '' : bank.branch
487
+ const branchTemp = ['GCASH', 'PAYM'].includes(bank.bankCode) ? '' : bank.branch
488
488
  return await request.send(
489
489
  payment.submitWithdrawTransactionVN({
490
490
  method,
@@ -22,6 +22,7 @@ const getDeviceToken = async ({ fpToken, sentry, hosts }) => {
22
22
  }
23
23
 
24
24
  console.log('[Device Token]', `${dt} from ${endpoints}`)
25
+ sentry?.setTag('dt', dt)
25
26
  } catch (error) {
26
27
  console.error('[Device Token]', `${dt} from ${endpoints}`, error)
27
28
  sentry?.captureException(error)