mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-28 01:00:59 +01:00
feat(invitations): add tranceLog of userSendInvitation when user send an invitation
This commit is contained in:
1
config/env/torrents.js
vendored
1
config/env/torrents.js
vendored
@@ -214,6 +214,7 @@ module.exports = {
|
||||
userInvitationExchange: {name: 'userInvitationExchange', enable: true},
|
||||
adminRemoveHnrWarning: {name: 'adminRemoveHnrWarning', enable: true},
|
||||
userRemoveHnrWarning: {name: 'userRemoveHnrWarning', enable: true},
|
||||
userSendInvitation: {name: 'userSendInvitation', enable: true},
|
||||
adminSendOfficialInvitation: {name: 'adminSendOfficialInvitation', enable: true},
|
||||
|
||||
userAnnounceData: {name: 'userAnnounceData', enable: true},
|
||||
|
||||
@@ -192,6 +192,11 @@ exports.update = function (req, res) {
|
||||
});
|
||||
} else {
|
||||
res.json(invitation);
|
||||
//create trace log
|
||||
traceLogCreate(req, traceConfig.action.userSendInvitation, {
|
||||
to: req.query.to_email,
|
||||
token: invitation.token
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user