wip: バグ修正

This commit is contained in:
GrapeApple0 2024-06-14 08:19:59 +00:00
parent 7fcf867bfe
commit 28bb6efe6c
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (err.id === '9725d0ce-ba28-4dde-95a7-2cbb2c15de24') throw new ApiError(meta.errors.noSuchNote); if (err.id === '9725d0ce-ba28-4dde-95a7-2cbb2c15de24') throw new ApiError(meta.errors.noSuchNote);
throw err; 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(); const histories = await q.limit(ps.limit).getMany();
return await this.noteHistoryEntityService.packMany(histories, me, { return await this.noteHistoryEntityService.packMany(histories, me, {
detail: true, detail: true,