testing yuk
This commit is contained in:
@@ -3,7 +3,7 @@ import supabase from '@/lib/db';
|
||||
|
||||
export async function GET(request: Request) {
|
||||
try {
|
||||
// Get all mahasiswa data and process in JavaScript
|
||||
// Ambil semua data mahasiswa dan proses di JavaScript
|
||||
const { data: mahasiswaData, error } = await supabase
|
||||
.from('mahasiswa')
|
||||
.select('provinsi');
|
||||
@@ -16,7 +16,7 @@ export async function GET(request: Request) {
|
||||
);
|
||||
}
|
||||
|
||||
// Process the data in JavaScript
|
||||
// Proses data di JavaScript
|
||||
let kalimantanBarat = 0;
|
||||
let luarKalimantanBarat = 0;
|
||||
|
||||
@@ -30,7 +30,7 @@ export async function GET(request: Request) {
|
||||
}
|
||||
});
|
||||
|
||||
// Transform the data to match the expected format
|
||||
// Transformasi data sesuai format yang diharapkan
|
||||
const result = [
|
||||
{
|
||||
provinsi: 'Kalimantan Barat',
|
||||
|
||||
Reference in New Issue
Block a user