mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 08:13:10 +02:00
9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
import * as mongodb from 'mongodb';
|
|
import Watching from '../../models/note-watching';
|
|
|
|
export default async (me: mongodb.ObjectID, note: object) => {
|
|
await Watching.remove({
|
|
noteId: (note as any)._id,
|
|
userId: me
|
|
});
|
|
};
|