File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ public function handle()
174174 }
175175
176176 try {
177+ $ this ->mappingArguments ();
177178 $ argumentName = $ this ->conversation ->next_argument_name ;
178179 $ this ->$ argumentName = new TelehookArgument ([
179180 'name ' => $ argumentName ,
@@ -347,6 +348,13 @@ protected function getMetadataByMessageTypeText(): array
347348 * @return void
348349 */
349350 protected function finishing ()
351+ {
352+ $ this ->mappingArguments ();
353+
354+ $ this ->conversation ->update (['status ' => TelehookConversation::STATUS_FINISH ]);
355+ }
356+
357+ public function mappingArguments ()
350358 {
351359 $ details = $ this ->conversation ->detailsHasArgumentName ;
352360
@@ -355,8 +363,6 @@ protected function finishing()
355363 $ metadata = json_decode ($ item ->metadata ?? '{} ' , true );
356364 $ this ->$ argName = new TelehookArgument ($ metadata );
357365 }
358-
359- $ this ->conversation ->update (['status ' => TelehookConversation::STATUS_FINISH ]);
360366 }
361367
362368 /**
You can’t perform that action at this time.
0 commit comments