1
0
Fork 1
mirror of https://example.com synced 2024-11-22 06:16:38 +09:00

fix (backend): undefined reference

This commit is contained in:
naskya 2024-02-21 05:32:48 +09:00
parent 8fa30c7a15
commit 3b0d540101
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

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(