Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

최신순으로 보여주게 수정 #59

Merged
merged 3 commits into from
Oct 4, 2024
Merged

Conversation

Hyun-git
Copy link
Member

@Hyun-git Hyun-git commented Oct 4, 2024

최신순으로 보여주게 수정
recommend meme 함수 삭제 사용안해서

@Hyun-git Hyun-git self-assigned this Oct 4, 2024

if (size > 5) {
if (size > 20) {
return next(
new CustomError(
`Invalid 'size' parameter. Today Meme List max size is 5.`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아예 로그도 바꿔버리자
Invalid 'size' parameter. Latest MemeList max size is 20.

@@ -164,11 +164,11 @@ const getAllMemeList = async (req: CustomRequest, res: Response, next: NextFunct
}
};

const getTodayMemeList = async (req: CustomRequest, res: Response, next: NextFunction) => {
const getLatestMeme = async (req: CustomRequest, res: Response, next: NextFunction) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이것도 List 뒤에 붙여주세용
getLatestMemeList

@@ -60,27 +60,27 @@ async function getMemeWithKeywords(
}
}

async function getTodayMemeList(
async function getLatestCreatedMeme(
limit: number = 5,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기본값 20으로 바꿔주세욥

{ isDeleted: false, isTodayMeme: true },
{ isDeleted: 0 },
).lean();
const latestMemeList = await MemeModel.find({ isDeleted: false }, { isDeleted: false })
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

질문) 마지막 필드가 { isDeleted: false} 여도 돼? isDeleted field 제거하겠단거징?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 잘못 봤다

@Hyun-git Hyun-git merged commit 8db5b4c into main Oct 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants