DONE: remove cache, and remove dto financing
This commit is contained in:
@@ -58,15 +58,10 @@ class ShorakaController extends Controller
|
||||
'ownership_doc_no' => $payload['ownership_doc_no'],
|
||||
'order_amount' => $payload['order_amount'],
|
||||
'murabaha_amount' => $payload['murabaha_amount'],
|
||||
'request_payload' => $request->attributes->get('shoraka_new')
|
||||
? array_merge($payload, ['_new_gadai' => true]) : $payload,
|
||||
'request_payload' => $payload,
|
||||
'attempt_count' => 1,
|
||||
];
|
||||
$create = function () use ($attributes) { return ShorakaTransaction::create($attributes); };
|
||||
$transaction = $request->attributes->get('shoraka_new')
|
||||
? app(\App\Services\ShorakaNewGadaiService::class)->claim(
|
||||
$request->attributes->get('shoraka_kodcaw'), $validated['norujukan'], $payload, $create
|
||||
) : $create();
|
||||
$transaction = ShorakaTransaction::create($attributes);
|
||||
} catch (QueryException $exception) {
|
||||
$existing = ShorakaTransaction::where('norujukan', $validated['norujukan'])->first();
|
||||
if ($existing) {
|
||||
|
||||
Reference in New Issue
Block a user