upd: api website dan mobile

Deskripsi:
- update order komentar pada mobile dan website pada fitur diskusi umum dan diskusi divisi

No Issues
This commit is contained in:
2025-10-15 14:51:58 +08:00
parent 9b48fe56fd
commit 4a4be31921
4 changed files with 13 additions and 1 deletions

View File

@@ -3,8 +3,8 @@ import { funGetUserByCookies } from "@/module/auth";
import { createLogUser } from "@/module/user";
import _ from "lodash";
import moment from "moment";
import { NextResponse } from "next/server";
import "moment/locale/id";
import { NextResponse } from "next/server";
// GET ONE DETAIL DISKUSI UMUM
@@ -75,6 +75,9 @@ export async function GET(request: Request, context: { params: { id: string } })
img: true
}
}
},
orderBy: {
createdAt: "asc"
}
})

View File

@@ -63,6 +63,9 @@ export async function GET(request: Request, context: { params: { id: string } })
},
where: {
isActive:true
},
orderBy: {
createdAt: "asc"
}
},
}

View File

@@ -77,6 +77,9 @@ export async function GET(request: Request, context: { params: { id: string } })
img: true
}
}
},
orderBy: {
createdAt: "asc"
}
})

View File

@@ -54,6 +54,9 @@ export async function GET(request: Request, context: { params: { id: string } })
img: true
}
}
},
orderBy: {
createdAt: "asc"
}
})