From 21c94661a095362b806cce325e0ec6b00f0fc179 Mon Sep 17 00:00:00 2001 From: Ryan Chandler Date: Wed, 4 Oct 2023 16:20:17 +0100 Subject: [PATCH] wip --- src/Actions/MaybeRefreshDatabaseContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Actions/MaybeRefreshDatabaseContent.php b/src/Actions/MaybeRefreshDatabaseContent.php index 53395a0..da235a6 100644 --- a/src/Actions/MaybeRefreshDatabaseContent.php +++ b/src/Actions/MaybeRefreshDatabaseContent.php @@ -48,7 +48,7 @@ public function refresh(Orbit&Model $model, Driver $driver): void ->chunk(100) ->each(function (Collection $chunk) use ($model, $blueprint) { // This will ensure that we don't have any collisions with existing data in the SQLite database. - $model->query()->whereKey($chunk->pluck($model->getKey()))->delete(); + $model->query()->whereKey($chunk->pluck($model->getKey())->all())->delete(); $model->insert( $chunk