Admin Workflow - API code refactor to fetch information to display on workflow

This commit is contained in:
Dillon Ngo
2025-01-04 22:38:42 +08:00
parent abe1f3df2b
commit db36336484
9 changed files with 249 additions and 115 deletions
@@ -121,7 +121,7 @@ class UpdateNextQuestionV1AdminWFLogic extends AbstractControllerLogic
//Marked data that has already been processed so that it does not appear again
$isNoGoingBack = null;
if($currentQuestion && $currentQuestion['is_end'] === 1){
$booking = Booking::where('id', $questionMetadata['booking']['id'])->first();
$booking = Booking::where('id', $questionMetadata['id'])->first();
$key1 = "admin_workflow_processed";
$key2 = "admin_workflow_processing";