Skip to content

Commit

Permalink
fix(채팅):채팅 보내기 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
jsween5723 committed Dec 16, 2023
1 parent c9176a3 commit 3562eee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/all/all.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class AllExceptionsFilter implements ExceptionFilter {
catch(exception: HttpException, host: ArgumentsHost): void {
const ctx = host.switchToHttp();
this.logger.error(exception);
console.log(exception);
ctx
.getResponse<Response>()
.status(exception instanceof HttpException ? exception.getStatus() : 500)
Expand Down
2 changes: 1 addition & 1 deletion src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class UserService {
public async unreadItemPlus(ids: string[], roomId: Types.ObjectId) {
await this.repository.updateAll(
{ id: { $in: ids } },
{ $inc: { 'rooms.$[elemenet].unreadItemCount': 1 } },
{ $inc: { 'rooms.$.unreadItemCount': 1 } },
{ arrayFilters: [{ 'element.rooms._id': new Types.ObjectId(roomId) }] },
);
}
Expand Down

0 comments on commit 3562eee

Please sign in to comment.