From b4ca8737e5a0cd326aa5c88f9425a1e42b882b81 Mon Sep 17 00:00:00 2001 From: Zeeshan Akram <37098720+zeeshanakram3@users.noreply.github.com> Date: Sat, 16 Mar 2024 16:35:23 +0500 Subject: [PATCH] Add notifications for previous top bidders in open auction (#319) * add notifications for previous top bidders in open auction * bump package version and update CHANGELOG --- CHANGELOG.md | 6 ++++++ package-lock.json | 4 ++-- package.json | 2 +- src/mappings/content/utils.ts | 6 ++++-- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f7787229..27d07b95b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package-lock.json b/package-lock.json index da6be0015..33ddfd817 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orion", - "version": "4.0.0", + "version": "4.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orion", - "version": "4.0.0", + "version": "4.0.1", "hasInstallScript": true, "workspaces": [ "network-tests" diff --git a/package.json b/package.json index 7a5583828..296b8ed6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orion", - "version": "4.0.0", + "version": "4.0.1", "engines": { "node": ">=16" }, diff --git a/src/mappings/content/utils.ts b/src/mappings/content/utils.ts index 1622116d2..ea83f2eae 100644 --- a/src/mappings/content/utils.ts +++ b/src/mappings/content/utils.ts @@ -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(