diff --git a/packages/backend/src/server/api/endpoints/users/notes.ts b/packages/backend/src/server/api/endpoints/users/notes.ts index ffa2a4e122..a9ee2a7a06 100644 --- a/packages/backend/src/server/api/endpoints/users/notes.ts +++ b/packages/backend/src/server/api/endpoints/users/notes.ts @@ -184,10 +184,10 @@ export default define(meta, paramDef, async (ps, me) => { "user", ps, { note: filter }, - user.id, + me?.id, )) as ScyllaNote[] ).slice(0, ps.limit); - return await Notes.packMany(foundNotes, user); + return await Notes.packMany(foundNotes, me); } //#region Construct query