Skip to content

Commit ff52082

Browse files
committed
Allow null
1 parent dff7309 commit ff52082

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Actions/UpdateBulkStatuses.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ public function update(): void
1515
{
1616
BulkRequest::query()
1717
->whereHas('operations', function (Builder $query): void {
18-
$query->where('status', '=', OperationStatus::Open);
18+
$query
19+
->where('status', '=', OperationStatus::Open)
20+
->orWhereNull('status');
1921
})
2022
->get()
2123
->each(fn (BulkRequest $bulkRequest): PendingDispatch => UpdateBulkStatusJob::dispatch($bulkRequest));

0 commit comments

Comments
 (0)