Skip to content

Commit

Permalink
Add notifications for previous top bidders in open auction (Joystream…
Browse files Browse the repository at this point in the history
…#319)

* add notifications for previous top bidders in open auction

* bump package version and update CHANGELOG
  • Loading branch information
malchililj authored Mar 16, 2024
1 parent 8697a54 commit f9cc055
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 4.0.0

## Misc

- Enable both in App and email notifications for `previousTopBidder` in NFT Open Auction.

# 4.0.0

This is Creator Tokens (CRT) release. It introduces the CRT mappings, custom resolvers and mutations.

# 3.7.0
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orion",
"version": "4.0.0",
"version": "4.0.1",
"engines": {
"node": ">=16"
},
Expand Down
6 changes: 4 additions & 2 deletions src/mappings/content/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,12 @@ export async function createBid(
auction.auctionType.isTypeOf === 'AuctionTypeEnglish'
) {
newBid.previousTopBidId = previousTopBidId
return { bid: newBid, auction, previousTopBid, auctionBids }
}

return { bid: newBid, auction, auctionBids }
// Although there is no notion of a "previousTopBid" in the OpenAuction type
// as all active bids are considered valid, but we still return it whether the
// auction type is "Open" or "English" for notification purposes.
return { bid: newBid, auction, previousTopBid, auctionBids }
}

export async function getChannelOwnerMemberByVideoId(
Expand Down

0 comments on commit f9cc055

Please sign in to comment.