fix (backend): undefined reference

This commit is contained in:
naskya 2024-02-16 14:17:22 +09:00
parent eca0d47951
commit 42dfe1e0c1
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@
- change the second tab on the notifications page from "unread" to "reactions"
- add ability to show a huge post button on the posting form
- joke feature, inspired by https://mstdn.poyo.me/@prime/110668364208741253
- bug fix
# v20240216

View file

@ -36,7 +36,7 @@ export default async (ctx: Router.RouterContext) => {
const pinnedNotes = (
await Promise.all(
pinning.map((pinnedNote) =>
this.notesRepository.findOneByOrFail({ id: pinnedNote.noteId }),
Notes.findOneByOrFail({ id: pinnedNote.noteId }),
),
)
).filter(