Skip to content

Commit

Permalink
feat(auction): start auction hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dorucioclea committed Jul 28, 2023
1 parent 29ae3b1 commit 5b9f842
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export class StartAuctionService extends BaseService {

auction.nftAsset = startAuctionModel["nft-asset-contract"].value;

auction.hash = this.calculateHash(auction);

await this.auctionRepository.save(auction);

this.Logger.info('Auction Saved');
Expand All @@ -77,6 +79,7 @@ export class StartAuctionService extends BaseService {
history.highestBidder = entity.highestBidder;
history.nftAsset = entity.nftAsset;
history.status = entity.status;
history.hash = entity.hash;
}, (entity: AuctionHistoryEntity) => this.auctionHistoryRepository.save(entity));
}
}

0 comments on commit 5b9f842

Please sign in to comment.