added log in transaction ansuran

This commit is contained in:
Hafifie PKB
2023-11-21 14:18:22 +08:00
parent 68896dcb75
commit 3ab9baf7b5
+4 -1
View File
@@ -33,6 +33,7 @@ use App\InOutMar;
use Illuminate\Http\Request;
use App\Services\OnePercentServices;
use Log;
use Illuminate\Support\Facades\DB;
@@ -564,12 +565,14 @@ class GadaiController extends Controller
}
DB::commit();
return response()->json("success", 200);
});
}catch(\Exception $e){
Log::error("Transaction failed: " . $e->getMessage());
return response()->json("Transaction failed: " . $e->getMessage(),500);
}
return response()->json("success",200);
}
public function getGadaianSemasa($kodcaw){