Skip to content

Commit

Permalink
🐛 Fix cannot mark quantity > 1 orders complete
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jan 16, 2025
1 parent 0e89625 commit 44d8deb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pages/nft-book-store/collection/status/[collectionId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,10 @@ async function hardSetStatusToCompleted (purchase: any) {
const { error: fetchError } = await useFetch(`${LIKE_CO_API}/likernft/book/collection/purchase/${collectionId.value}/sent/${purchase.id}`,
{
method: 'POST',
body: { txHash: null },
body: {
txHash: null,
quantity: purchase.quantity || 1
},
headers: {
authorization: `Bearer ${token.value}`
}
Expand Down
5 changes: 4 additions & 1 deletion pages/nft-book-store/status/[classId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,10 @@ async function hardSetStatusToCompleted (purchase: any) {
const { error: fetchError } = await useFetch(`${LIKE_CO_API}/likernft/book/purchase/${classId.value}/sent/${purchase.id}`,
{
method: 'POST',
body: { txHash: null },
body: {
txHash: null,
quantity: purchase.quantity || 1
},
headers: {
authorization: `Bearer ${token.value}`
}
Expand Down

0 comments on commit 44d8deb

Please sign in to comment.