switch recheck completion handling into a step
[scpubgit/DX.git] / lib / DX / Step / EnterRecheck.pm
index 4b9d76e..64218fa 100644 (file)
@@ -1,5 +1,7 @@
 package DX::Step::EnterRecheck;
 
+use DX::Step::CompleteRecheck;
+
 use DX::Class;
 
 with 'DX::Role::Step';
@@ -49,7 +51,10 @@ sub apply_to {
                  ),
     is_solution_state => 0,
     on_exhaustion_step => undef,
-    on_solution_step => DX::Step::MarkAsSolution->new,
+    on_solution_step => DX::Step::CompleteRecheck->new(
+      original_search_state => $old_ss,
+      was_recheck_for => $prop,
+    ),
   );
 
   return $ss;