From 28bb6efe6c866599a582b843259f54180833847c Mon Sep 17 00:00:00 2001 From: GrapeApple0 <84321396+GrapeApple0@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:19:59 +0000 Subject: [PATCH] =?UTF-8?q?wip:=20=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/endpoints/notes/history.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/notes/history.ts b/packages/backend/src/server/api/endpoints/notes/history.ts index 341e772833..04779e4b50 100644 --- a/packages/backend/src/server/api/endpoints/notes/history.ts +++ b/packages/backend/src/server/api/endpoints/notes/history.ts @@ -66,7 +66,7 @@ export default class extends Endpoint { // eslint- if (err.id === '9725d0ce-ba28-4dde-95a7-2cbb2c15de24') throw new ApiError(meta.errors.noSuchNote); throw err; }); - q.andWhere('noteHistory.targetId = :noteId', { targetId: note.id }); + q.andWhere('noteHistory.targetId = :targetId', { targetId: note.id }); const histories = await q.limit(ps.limit).getMany(); return await this.noteHistoryEntityService.packMany(histories, me, { detail: true,