mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-02 10:11:07 +01:00
feat(invitations): list all used invitations on detail view
This commit is contained in:
@@ -71,12 +71,10 @@ exports.list = function (req, res) {
|
||||
|
||||
var findUsedInvitations = function (callback) {
|
||||
Invitation.find({
|
||||
where: {
|
||||
user: req.user._id,
|
||||
status: 2
|
||||
}
|
||||
status: {$gt: 0}
|
||||
})
|
||||
.sort('registeredat')
|
||||
.sort('invitedat')
|
||||
.populate('user')
|
||||
.exec(function (err, invitations) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user