Update insert
This commit is contained in:
@@ -55,6 +55,8 @@ class RequestLogController extends Controller
|
|||||||
{
|
{
|
||||||
//insert data to organization
|
//insert data to organization
|
||||||
try {
|
try {
|
||||||
|
if(!$request->id_provider)
|
||||||
|
{
|
||||||
// Memulai transaksi
|
// Memulai transaksi
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
|
|
||||||
@@ -85,6 +87,8 @@ class RequestLogController extends Controller
|
|||||||
// Commit transaksi
|
// Commit transaksi
|
||||||
DB::commit();
|
DB::commit();
|
||||||
$request->merge(['organization_id' => $organization_id]);
|
$request->merge(['organization_id' => $organization_id]);
|
||||||
|
}
|
||||||
|
|
||||||
$requestLogControllerInstance = new PrimeCenterRequestLog();
|
$requestLogControllerInstance = new PrimeCenterRequestLog();
|
||||||
$response = $requestLogControllerInstance->createNew($request);
|
$response = $requestLogControllerInstance->createNew($request);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user