From 3562eee6646104cf5c0b3984092d5dec03488e42 Mon Sep 17 00:00:00 2001 From: jsween5723 Date: Sun, 17 Dec 2023 02:52:34 +0900 Subject: [PATCH] =?UTF-8?q?fix(=EC=B1=84=ED=8C=85):=EC=B1=84=ED=8C=85=20?= =?UTF-8?q?=EB=B3=B4=EB=82=B4=EA=B8=B0=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/all/all.filter.ts | 1 + src/user/user.service.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/all/all.filter.ts b/src/all/all.filter.ts index d7bf782..c1351ac 100644 --- a/src/all/all.filter.ts +++ b/src/all/all.filter.ts @@ -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() .status(exception instanceof HttpException ? exception.getStatus() : 500) diff --git a/src/user/user.service.ts b/src/user/user.service.ts index 9a20676..cd44b32 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -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) }] }, ); }