testing yuk
This commit is contained in:
@@ -22,7 +22,7 @@ export async function GET() {
|
||||
);
|
||||
}
|
||||
|
||||
// Group by tahun_angkatan and status_kuliah
|
||||
// Kelompokkan berdasarkan tahun_angkatan dan status_kuliah
|
||||
const groupedData = data.reduce((acc, item: any) => {
|
||||
const tahun_angkatan = item.tahun_angkatan;
|
||||
const status_kuliah = item.status_kuliah;
|
||||
@@ -31,7 +31,7 @@ export async function GET() {
|
||||
return acc;
|
||||
}, {} as Record<string, number>);
|
||||
|
||||
// Convert to final format
|
||||
// Konversi ke format akhir
|
||||
const results: StatusData[] = Object.entries(groupedData).map(([key, jumlah]) => {
|
||||
const [tahun_angkatan, status_kuliah] = key.split('-');
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user