Actions
Bug #1533
closedBuat handle error duplicate entry api booking tokopedia
Platform:
SWB - Sistem Wahana Baru
User:
SP:
Sprint:
Description
1. tambah handle try catch pada fungsi insert ke db
2. cek jika dapat error kode 1062 => Duplicate entry, maka kirim respone code sukses 200 dengan data yang dibutuhkan tokopedia
// contoh respone api booking { "code": 0, "data": { "awb": "YHC333MF", "branch_code": "6AB-191-S75-125-S70-128-G08-169-PHW" }, "detail": { "booking": "TWHN-000005WDECZ" }, "message": "successfull", "status": "success" }
Actions