GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: search challenge · Team-O2/Back-end@c7d1a72

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • controller
      • challenge.ts
    • service
      • challengeService.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/controller/challenge.ts‎

Copy file name to clipboardExpand all lines: src/controller/challenge.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ router.get("/search", publicAuth, async (req: Request, res: Response) => {
6565
try {
6666
const data: IChallengeDTO[] | -1 = await getChallengeSearch(
6767
req.query.tag,
68-
req.query.isMine,
68+
req.query.ismine,
6969
req.query.keyword,
7070
req.query.offset,
7171
req.query.limit,
Collapse file

‎src/service/challengeService.ts‎

Copy file name to clipboardExpand all lines: src/service/challengeService.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const getChallengeOne = async (userID, challengeID) => {
155155
*/
156156
export const getChallengeSearch = async (
157157
tag,
158-
isMine,
158+
ismine,
159159
keyword,
160160
offset,
161161
limit,
@@ -213,7 +213,7 @@ export const getChallengeSearch = async (
213213

214214
if (userID) {
215215
// 내가 쓴 글 필터링
216-
if (isMine === "1" && isMine) {
216+
if (ismine === "1" && ismine) {
217217
filteredData = filteredData.filter((fd) => {
218218
if (String(fd.user._id) === String(userID.id)) return fd;
219219
});

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.