Closed elainechan closed 6 years ago
tried in API transaction.controller
:
Transaction.find({account: ObjectId(req.body.account)})
Transaction.find({account: req.body.account})
Transaction.find(req.user.id)
Transaction.find({account: req.user.id})
use req.user.userId
inspect
req.user.id