iceshrimp-161sh/packages/backend/src/services/note/unwatch.ts
ThatOneCalculator 2aab2de38d refactor: 🎨 rome
2023-01-12 20:40:33 -08:00

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,
});
};