diff --git a/src/Lifecycle/SnapshotStore.php b/src/Lifecycle/SnapshotStore.php index 22789074..ad73689c 100644 --- a/src/Lifecycle/SnapshotStore.php +++ b/src/Lifecycle/SnapshotStore.php @@ -37,8 +37,8 @@ public function loadSingleton(string $type): ?State public function write(array $states): bool { $values = collect(static::formatForWrite($states)) - ->unique('id') - ->all(); + ->unique('id') + ->all(); return VerbSnapshot::upsert($values, 'id', ['data', 'last_event_id', 'updated_at']); }