mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 21:19:07 +01:00
11 lines
288 B
TypeScript
11 lines
288 B
TypeScript
import type { User } from "@/models/entities/user.js";
|
|
import { NoteWatchings } from "@/models/index.js";
|
|
import type { Note } from "@/models/entities/note.js";
|
|
|
|
export default async (me: User["id"], note: Note) => {
|
|
await NoteWatchings.delete({
|
|
noteId: note.id,
|
|
userId: me,
|
|
});
|
|
};
|