From b40f826c5d7855db93f686a7ab5cce444d54ac83 Mon Sep 17 00:00:00 2001 From: pjw5521 Date: Sat, 28 Sep 2024 14:45:42 +0900 Subject: [PATCH] fix: change name & delete unused log --- src/service/user.service.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/service/user.service.ts b/src/service/user.service.ts index 22e032e..a4be685 100644 --- a/src/service/user.service.ts +++ b/src/service/user.service.ts @@ -254,21 +254,20 @@ async function createMemeRecommendWatch(user: IUserDocument, meme: IMemeDocument async function getRegisteredMemeList(user: IUserDocument): Promise { try { const deviceId = user.deviceId; - const memeList = await MemeModel.find({ deviceId, isDeleted: false }, { isDeleted: 0 }) + const myMemeList = await MemeModel.find({ deviceId, isDeleted: false }, { isDeleted: 0 }) .sort({ createdAt: -1 }) .lean(); - const getRegisteredMemeList = await MemeService.getMemeListWithKeywordsAndisSavedAndisReaction( + const myMemeListInfo = await MemeService.getMemeListWithKeywordsAndisSavedAndisReaction( user, - memeList, + myMemeList, ); logger.info( `Get registeredMemeList - deviceId(${user.deviceId}), memeList(${getRegisteredMemeList})`, ); - return getRegisteredMemeList; + return myMemeListInfo; } catch (err) { - logger.error(`Failed get registered meme list`, err.message); throw new CustomError( `Failed get registered meme list(${err.message})`, HttpCode.INTERNAL_SERVER_ERROR,