Skip to content
Snippets Groups Projects
Commit 3dc9842b authored by Seren Siahaan's avatar Seren Siahaan
Browse files

fix: update request body

parent 32294427
1 merge request!17merge branch 'seren' into 'main'
...@@ -22,10 +22,8 @@ const Edit = () => { ...@@ -22,10 +22,8 @@ const Edit = () => {
const body = JSON.stringify({ const body = JSON.stringify({
namaKelas, namaKelas,
hargaKelas, hargaKelas,
jenisKendaraan,
jumlahSesi, jumlahSesi,
platNomorKendaraan, platNomorKendaraan
namaKendaraan
}) })
const updateQuery = await fetch("https://rpl-backend-production.up.railway.app/v1/kelasmengemudi/update/" + router.query.id, { const updateQuery = await fetch("https://rpl-backend-production.up.railway.app/v1/kelasmengemudi/update/" + router.query.id, {
method: "PATCH", method: "PATCH",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment