Skip to content

Commit

Permalink
Update authAuction.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
talafarael committed May 4, 2024
1 parent 9a3699d commit 14c99b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Router/authAuction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ console.log(auction.rates)
auction.state = true
auction.listRates.push(bid)

if(auction.listRates[auction.listRates.length]>=2){
console.log('arrr')
if(auction.listRates.length>=2){

const userEmail = await User.findOne({_id:auction.listRates[auction.listRates.length-2].userId})
console.log(userEmail)
await emailSender.sendmessage({
Expand Down

0 comments on commit 14c99b1

Please sign in to comment.