Skip to content

Commit

Permalink
avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
talafarael committed May 21, 2024
1 parent 837ae84 commit e0240db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Router/authAuction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ class authAuction {
if (auction.owner == user.name) {
stateOwner = true
}
const userOwn=await User.findOne({_id: auction.ownerId})
console.log(userOwn)
let UserBid = auction.listRates.find(
(element: IUserBid) => element.userId == id
)
Expand All @@ -189,6 +191,7 @@ class authAuction {
auction.active = active
auction.save()
res.status(200).json({
avatar:userOwn.avatar,
stateOwner: stateOwner,
UserBid: UserBid,
auction: auction,
Expand Down

0 comments on commit e0240db

Please sign in to comment.