1
0
Fork 1
mirror of https://example.com synced 2024-11-22 14:56: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 = ( const pinnedNotes = (
await Promise.all( await Promise.all(
pinning.map((pinnedNote) => pinning.map((pinnedNote) =>
this.notesRepository.findOneByOrFail({ id: pinnedNote.noteId }), Notes.findOneByOrFail({ id: pinnedNote.noteId }),
), ),
) )
).filter( ).filter(