This commit is contained in:
syuilo 2018-07-27 07:29:24 +09:00
parent 5f33c16baf
commit dac0c41789

View File

@ -10,8 +10,7 @@ export default async (me: mongodb.ObjectID, note: object) => {
// if watching now
const exist = await Watching.findOne({
noteId: (note as any)._id,
userId: me,
deletedAt: { $exists: false }
userId: me
});
if (exist !== null) {