From 04f040c9f94767695a1be55e098b0e6a4d8e22a3 Mon Sep 17 00:00:00 2001 From: William Chong Date: Tue, 11 Mar 2025 18:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20Fix=20invalid=20POST=20?= =?UTF-8?q?payload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/nft-book-store/collection/new.vue | 8 ++++---- pages/nft-book-store/new.vue | 13 ++++++------- pages/nft-book-store/status/[classId].vue | 12 ++++++------ 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/pages/nft-book-store/collection/new.vue b/pages/nft-book-store/collection/new.vue index ab2abcca..421f6495 100644 --- a/pages/nft-book-store/collection/new.vue +++ b/pages/nft-book-store/collection/new.vue @@ -688,8 +688,8 @@ async function submitNewCollection () { classIds: classIds.value, defaultPaymentCurrency: 'USD', connectedWallets, - moderatorWallets, - notificationEmails, + moderatorWallets: moderatorWallets.value, + notificationEmails: notificationEmails.value, shippingRates: s, name: { en: nameEn.value, zh: nameZh.value }, description: { @@ -697,8 +697,8 @@ async function submitNewCollection () { zh: escapeHtml(descriptionZh.value) }, image: image.value, - hideDownload, - mustClaimToView, + hideDownload: hideDownload.value, + mustClaimToView: mustClaimToView.value, autoDeliverNFTsTxHash, ...formattedPrice }) diff --git a/pages/nft-book-store/new.vue b/pages/nft-book-store/new.vue index fe8836d8..59998989 100644 --- a/pages/nft-book-store/new.vue +++ b/pages/nft-book-store/new.vue @@ -819,18 +819,17 @@ async function submitNewClass () { wallet.value ) } - await newBookListing(classIdInput.value as string, { - tableOfContents, + tableOfContents: tableOfContents.value, defaultPaymentCurrency: 'USD', connectedWallets, - moderatorWallets, - notificationEmails, + moderatorWallets: moderatorWallets.value, + notificationEmails: notificationEmails.value, prices: p, shippingRates: s, - mustClaimToView, - enableCustomMessagePage, - hideDownload, + mustClaimToView: mustClaimToView.value, + enableCustomMessagePage: enableCustomMessagePage.value, + hideDownload: hideDownload.value, autoDeliverNFTsTxHash }) router.push({ name: 'nft-book-store' }) diff --git a/pages/nft-book-store/status/[classId].vue b/pages/nft-book-store/status/[classId].vue index 78bb2aca..fd6b4427 100644 --- a/pages/nft-book-store/status/[classId].vue +++ b/pages/nft-book-store/status/[classId].vue @@ -1216,13 +1216,13 @@ async function updateSettings () { ? connectedWallets.value : null await updateBookListingSetting(classId.value as string, { - moderatorWallets, - notificationEmails, + moderatorWallets: moderatorWallets.value, + notificationEmails: notificationEmails.value, connectedWallets: newConnectedWallets, - hideDownload, - mustClaimToView, - tableOfContents, - enableCustomMessagePage + hideDownload: hideDownload.value, + mustClaimToView: mustClaimToView.value, + tableOfContents: tableOfContents.value, + enableCustomMessagePage: enableCustomMessagePage.value }) router.push({ name: 'nft-book-store'