Skip to content

Commit

Permalink
fix: change name & delete unused log
Browse files Browse the repository at this point in the history
  • Loading branch information
pjw5521 committed Sep 28, 2024
1 parent 6246d7b commit b40f826
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/service/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,21 +254,20 @@ async function createMemeRecommendWatch(user: IUserDocument, meme: IMemeDocument
async function getRegisteredMemeList(user: IUserDocument): Promise<IMemeGetResponse[]> {
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,
Expand Down

0 comments on commit b40f826

Please sign in to comment.