From 3b0d5401019df7dd9c749c524443b88e386a26fa Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 21 Feb 2024 05:32:48 +0900 Subject: [PATCH] fix (backend): undefined reference --- packages/backend/src/server/activitypub/featured.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/activitypub/featured.ts b/packages/backend/src/server/activitypub/featured.ts index 030d4253..82c138a8 100644 --- a/packages/backend/src/server/activitypub/featured.ts +++ b/packages/backend/src/server/activitypub/featured.ts @@ -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(