mirror of
https://example.com
synced 2024-11-22 09:56:39 +09:00
fix (backend): undefined reference
This commit is contained in:
parent
8fa30c7a15
commit
3b0d540101
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue