summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-07-27 07:29:24 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-07-27 07:29:24 +0900
commitbfd8b12a4f0707e5d664fa46e572b57bb3a3da9f (patch)
tree1d661697244b58037be27b4d249bc72ee2e031e2 /src/services
parent5.5.0 (diff)
downloadsharkey-bfd8b12a4f0707e5d664fa46e572b57bb3a3da9f.tar.gz
sharkey-bfd8b12a4f0707e5d664fa46e572b57bb3a3da9f.tar.bz2
sharkey-bfd8b12a4f0707e5d664fa46e572b57bb3a3da9f.zip
Clean up
Diffstat (limited to 'src/services')
-rw-r--r--src/services/note/watch.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/services/note/watch.ts b/src/services/note/watch.ts
index 28fb7a32c2..aad53610d8 100644
--- a/src/services/note/watch.ts
+++ b/src/services/note/watch.ts
@@ -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) {