Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed Oct 4, 2023
1 parent 2348e46 commit 21c9466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/MaybeRefreshDatabaseContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21c9466

Please sign in to comment.