Skip to content

Commit

Permalink
🚑️ Fix invalid POST payload
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Mar 11, 2025
1 parent 0e0e83e commit 04f040c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
8 changes: 4 additions & 4 deletions pages/nft-book-store/collection/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -688,17 +688,17 @@ 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: {
en: escapeHtml(descriptionEn.value),
zh: escapeHtml(descriptionZh.value)
},
image: image.value,
hideDownload,
mustClaimToView,
hideDownload: hideDownload.value,
mustClaimToView: mustClaimToView.value,
autoDeliverNFTsTxHash,
...formattedPrice
})
Expand Down
13 changes: 6 additions & 7 deletions pages/nft-book-store/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down
12 changes: 6 additions & 6 deletions pages/nft-book-store/status/[classId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 04f040c

Please sign in to comment.