sort เรียงจากวันที่สร้าง

This commit is contained in:
Bright 2024-11-27 15:35:04 +07:00
parent 483e64ffe3
commit 06d6c07d3f

View file

@ -550,6 +550,7 @@ export class DevelopmentScholarshipController extends Controller {
{ scholarshipType: type },
)
.select(["id", "scholarshipYear", "scholarshipYear", "scholarshipType", "fundType"])
.orderBy("developmentScholarship.createdAt", "DESC")
.getRawMany();
return new HttpSuccess(getDevelopment);