Clean up
This commit is contained in:
parent
286da28cd6
commit
bfd8b12a4f
|
@ -10,8 +10,7 @@ export default async (me: mongodb.ObjectID, note: object) => {
|
||||||
// if watching now
|
// if watching now
|
||||||
const exist = await Watching.findOne({
|
const exist = await Watching.findOne({
|
||||||
noteId: (note as any)._id,
|
noteId: (note as any)._id,
|
||||||
userId: me,
|
userId: me
|
||||||
deletedAt: { $exists: false }
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (exist !== null) {
|
if (exist !== null) {
|
||||||
|
|
Loading…
Reference in a new issue