fix: preserve confirmed followup snapshots and expand flow checks
This commit is contained in:
@@ -147,6 +147,8 @@ final class FollowupAudioApply
|
||||
}
|
||||
Db::name('followup_audio_task')->where('id', $taskId)->update([
|
||||
'status' => 'applied', 'stage' => 'applied', 'version' => (int) $task['version'] + 1,
|
||||
// The completed detail must show exactly the edits/selection confirmed in this transaction.
|
||||
'review_cipher' => FollowupAudioStore::seal($taskId, 'review', array_replace($review, ['items' => $merged])),
|
||||
'applied_cipher' => FollowupAudioStore::seal($taskId, 'applied', ['items' => $applied] + $roleAnnotation),
|
||||
'applied_at' => time(), 'updated_at' => time(),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user