mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-21 07:11:50 +02:00
fix(torrents): fixed thumbs up of torrent issue
This commit is contained in:
@@ -37,12 +37,12 @@ module.exports.update = function (req, user, action, value) {
|
||||
user.markModified('examinationData');
|
||||
}
|
||||
user.score += v;
|
||||
user.save();
|
||||
|
||||
traceLogCreate(req, traceConfig.action.userScoreChange, {
|
||||
user: user._id,
|
||||
score: v,
|
||||
scoreActionName: action.name
|
||||
user.save(function () {
|
||||
traceLogCreate(req, traceConfig.action.userScoreChange, {
|
||||
user: user._id,
|
||||
score: v,
|
||||
scoreActionName: action.name
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1072,7 +1072,7 @@
|
||||
vm.beginThumbsUp = function (t) {
|
||||
t.$thumbsUp(function (res) {
|
||||
vm.torrentLocalInfo = res;
|
||||
|
||||
vm.torrentTabs[3].badges[0].value += 1;
|
||||
Notification.success({
|
||||
message: '<i class="glyphicon glyphicon-ok"></i> ' + $translate.instant('TORRENT_THUMBS_SUCCESSFULLY')
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user