testing git
This commit is contained in:
1 parent
3a0493ab1c
commit
3cfd608a7c
1 file changed
+1
-1
@@ -198,7 +198,7 @@ router.post('/penyewa/:nik', async (req, res) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
router.put('/penyewa/:nik', async (req, res) => {
|
router.put('/penyewa/:nik', async (req, res) => {
|
||||||
const { nik } = req.params;
|
const { nik } = req.params; //trying
|
||||||
const { nik_baru, nama } = req.body;
|
const { nik_baru, nama } = req.body;
|
||||||
try {
|
try {
|
||||||
const query_select = 'SELECT * FROM tb_penyewa where nik = ?';
|
const query_select = 'SELECT * FROM tb_penyewa where nik = ?';
|
||||||
|
|||||||
Reference in new issue
Block a user