mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
10 lines
226 B
TypeScript
10 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
|
|
});
|
|
};
|