Skip to content

Commit 3ffda1e

Browse files
Revert history payload producer guard
1 parent 50388a9 commit 3ffda1e

4 files changed

Lines changed: 1 addition & 732 deletions

File tree

src/V2/Models/WorkflowHistoryEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Illuminate\Database\Eloquent\Relations\BelongsTo;
1111
use Workflow\V2\Enums\HistoryEventType;
1212
use Workflow\V2\Support\ConfiguredV2Models;
13-
use Workflow\V2\Support\HistoryEventPayloadContract;
1413

1514
class WorkflowHistoryEvent extends Model
1615
{
@@ -60,7 +59,6 @@ public static function record(
6059
$taskId = $taskModel?->id ?? (is_string($task) ? $task : null);
6160
$commandId = $commandModel?->id ?? (is_string($command) ? $command : null);
6261
$sequence = $run->last_history_sequence + 1;
63-
HistoryEventPayloadContract::assertKnownPayloadKeys($eventType, $payload);
6462

6563
/** @var self $event */
6664
$event = self::query()->create([

src/V2/Models/WorkflowScheduleHistoryEvent.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Illuminate\Database\UniqueConstraintViolationException;
1212
use Workflow\V2\Enums\HistoryEventType;
1313
use Workflow\V2\Support\ConfiguredV2Models;
14-
use Workflow\V2\Support\HistoryEventPayloadContract;
1514

1615
class WorkflowScheduleHistoryEvent extends Model
1716
{
@@ -57,8 +56,6 @@ public static function record(
5756
HistoryEventType $eventType,
5857
array $payload = [],
5958
): self {
60-
HistoryEventPayloadContract::assertKnownPayloadKeys($eventType, $payload);
61-
6259
$snapshot = self::snapshotPayload($schedule, $payload);
6360
$workflowInstanceId = self::stringValue($payload['workflow_instance_id'] ?? null);
6461
$workflowRunId = self::stringValue($payload['workflow_run_id'] ?? null);

0 commit comments

Comments
 (0)