Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-

### Server
-
- Fix: チャット履歴の取得時に必要ない情報の取得が行われていた問題を修正


## 2026.11.0
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/core/ChatService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export class ChatService {

query.setParameters(mutingQuery.getParameters());

const message = await query.getOne();
const message = await query.limit(1).getOne();

if (message) {
history.push(message);
Expand Down Expand Up @@ -497,7 +497,7 @@ export class ChatService {
query.andWhere('message.toRoomId NOT IN (:...found)', { found: found });
}

const message = await query.getOne();
const message = await query.limit(1).getOne();

if (message) {
history.push(message);
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/core/RegistryApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class RegistryApiService {
query.andWhere('item.key = :key', { key: key });
query.andWhere('item.scope = :scope', { scope: scope });

const existingItem = await query.getOne();
const existingItem = await query.limit(1).getOne();

if (existingItem) {
await this.registryItemsRepository.update(existingItem.id, {
Expand Down Expand Up @@ -74,7 +74,7 @@ export class RegistryApiService {
.andWhere('item.key = :key', { key: key })
.andWhere('item.scope = :scope', { scope: scope });

const item = await query.getOne();
const item = await query.limit(1).getOne();

return item;
}
Expand Down
Loading