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 6, 2024
1 parent b786497 commit 286c208
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Router/authAuction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,16 @@ class authAuction {
if (auction.owner == user.name) {
stateOwner = true
}
let UserBid = auction.listRates.find(
(element: IUserBid) => element.userId == id
)
const active = await verifyTime(auction.timeEnd, res)
console.log(active)
auction.active = active
auction.save()
res.status(200).json({
stateOwner: stateOwner,

UserBid:UserBid,
auction: auction,
message: "Auction created successfully",
})
Expand Down

0 comments on commit 286c208

Please sign in to comment.