Skip to content

Commit

Permalink
fix: room이 하나만 만들어지는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
juyeong-s committed Nov 2, 2024
1 parent 86c6617 commit f78c2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class UserService {
public async addRoom(room: ChatRoom, userIds: string[]) {
const promises = [];
userIds.forEach((id) =>
promises.push(this.repository.upsert({ id }, { rooms: [], id: id })),
promises.push(this.repository.upsert({ id }, { id: id })),
);
const results: User[] = await Promise.all(promises);
await this.repository.updateAll(
Expand Down

0 comments on commit f78c2f0

Please sign in to comment.