@unsource/ui 2.9.32 → 2.9.33

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.9.32",
4
+ "version": "2.9.33",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -4,6 +4,7 @@ import {
4
4
  useUserId
5
5
  } from "./reuseable.js";
6
6
  import { _set, useNuxtApp, useRoute } from "#imports";
7
+ import { useState } from "#build/imports";
7
8
  export const getForms = async (name) => {
8
9
  const { result } = await useGet("/Form", {
9
10
  params: {
@@ -96,10 +97,12 @@ export const getOptions = async (key) => {
96
97
  export const getMyTransactions = async (q = {}) => {
97
98
  const userId = useUserId();
98
99
  if (!userId.value) return [];
100
+ const wallets = useState("wallet", () => []);
101
+ const walletsId = wallets.value.map((e) => e.id);
99
102
  const { result } = await useGet("/transaction", {
100
103
  params: {
101
- "$w.OR.0.wallet.userId": userId.value,
102
- "$w.OR.1.toWallet.userId": userId.value,
104
+ "$w.OR.0.walletId.$in": walletsId,
105
+ "$w.OR.1.toWallet.$in": walletsId,
103
106
  "$w.OR.2.userId": userId.value,
104
107
  "$w.status:not": "PENDING",
105
108
  "$i.gateway.$i.gateway": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.9.32",
3
+ "version": "2.9.33",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",