@teamdigipay/dgepay-customer-transaction-package 0.0.3 → 0.0.4

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.
@@ -228,7 +228,8 @@ class TransactionController {
228
228
  var _b;
229
229
  let isAgentAsMerchant = ((_b = payload.params) === null || _b === void 0 ? void 0 : _b.isAgentAsMerchant) || false;
230
230
  (0, TransactionAPIHelper_1.getQrCodeDetailsHelper)(config, payload, (data) => __awaiter(this, void 0, void 0, function* () {
231
- const user_id = (data === null || data === void 0 ? void 0 : data.qr_code_type_id) || null;
231
+ var _c;
232
+ const user_id = ((_c = data[0]) === null || _c === void 0 ? void 0 : _c.qr_code_type_id) || null;
232
233
  const amount = (data === null || data === void 0 ? void 0 : data.amount) || null;
233
234
  const qrId = data === null || data === void 0 ? void 0 : data.id;
234
235
  (0, UserAPIHelpers_1.getUserDetailsHelper)(config, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamdigipay/dgepay-customer-transaction-package",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "author": "RM (peerbits)",
5
5
  "license": "MIT",
6
6
  "main": "src/index.ts",
@@ -738,7 +738,7 @@ export class TransactionController {
738
738
  config,
739
739
  payload,
740
740
  async (data: any) => {
741
- const user_id = data?.qr_code_type_id || null;
741
+ const user_id = data[0]?.qr_code_type_id || null;
742
742
  const amount = data?.amount || null
743
743
  const qrId = data?.id
744
744
  getUserDetailsHelper(