fix pargar mande

This commit is contained in:
2026-07-25 16:47:12 +03:30
parent 5b11dccbb8
commit 017e375c4d
21 changed files with 148 additions and 43 deletions
+2 -2
View File
@@ -659,11 +659,11 @@ async function refreshWalletPanels() {
])
}
async function syncPargarWallet() {
async function syncPargarWallet(force = false) {
if (!userInfo.value?.id || !pargarWalletCanSync.value || pargarSyncLoading.value) return
pargarSyncLoading.value = true
try {
const res = await syncCustomerWalletFromPargar(userInfo.value.id)
const res = await syncCustomerWalletFromPargar(userInfo.value.id, force)
const applied =
res.ok ||
(res.result?.documents?.acknowledged ?? 0) > 0 ||