Skip to content

Commit

Permalink
fix: 修复负数bug
Browse files Browse the repository at this point in the history
  • Loading branch information
boxshadow committed May 8, 2018
1 parent fbdbb27 commit 708d514
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function reject(
'user_id' => $user->id,
'type' => 'user-feed-comment-pinned',
]);
$userCount->total = $userUnreadCount - 1;
$userCount->total = $userUnreadCount;
Log::debug($userCount);
$userCount->save();

Expand Down

0 comments on commit 708d514

Please sign in to comment.