fix: cache cards

This commit is contained in:
Shariq Ansari 2024-11-14 20:47:01 +05:30
parent b4b890ec35
commit 2cafc7fb09
2 changed files with 2 additions and 0 deletions

View file

@ -83,6 +83,7 @@ const show = defineModel()
const cards = createResource({
url: 'frappe.integrations.frappe_providers.frappecloud_billing.api',
params: { method: 'billing.get_payment_methods' },
cache: 'cards',
auto: true,
})

View file

@ -95,6 +95,7 @@ const showAddCardModal = ref(false)
const cards = createResource({
url: 'frappe.integrations.frappe_providers.frappecloud_billing.api',
params: { method: 'billing.get_payment_methods' },
cache: 'cards',
auto: true,
})