Skip to content

Commit 50111fb

Browse files
committed
improve serialization for workflow interrupt
1 parent b4be492 commit 50111fb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Workflow/Persistence/DatabasePersistence.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ public function save(string $workflowId, WorkflowInterrupt $interrupt): void
3030

3131
$stmt->execute([
3232
'id' => $workflowId,
33-
'interrupt' => base64_encode(
34-
serialize($interrupt)
35-
), // Simple Base64 string is compatible with all databases
33+
'interrupt' => serialize($interrupt)
3634
]);
3735
}
3836

src/Workflow/Persistence/EloquentPersistence.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ public function save(string $workflowId, WorkflowInterrupt $interrupt): void
2727
$model->newQuery()->updateOrCreate([
2828
'workflow_id' => $workflowId,
2929
], [
30-
'interrupt' => base64_encode(
31-
serialize($interrupt)
32-
), // Simple Base64 string is compatible with all databases
30+
'interrupt' => serialize($interrupt)
3331
]);
3432
}
3533

0 commit comments

Comments
 (0)