mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-19 05:31:11 +02:00
623cadf981
This reverts commit 8d3c35c0c6
.
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,
|
|
});
|
|
};
|