This commit is contained in:
syuilo
2017-06-07 01:20:07 +09:00
parent 079f2098e3
commit 6c4baf69ff
4 changed files with 63 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
// この投稿をWatchする
// TODO: ユーザーが「投票したときに自動でWatchする」設定を
// オフにしていた場合はしない
watch(user._id, post._id);
watch(user._id, post);
});
function findWithAttr(array, attr, value) {