Skip to content

Commit 725715a

Browse files
committed
fix query
1 parent c0f7b1d commit 725715a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Internal/Repository/TransferRepository.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ public function findBy(TransferQueryInterface $query): array
5656
public function updateStatusByIds(string $status, array $ids): int
5757
{
5858
return $this->transfer->newQuery()
59-
->whereKey($ids)
59+
->toBase()
60+
->whereIn($this->transfer->getKeyName(), $ids)
6061
->update([
61-
'status' => $status,
6262
'status_last' => DB::raw('status'),
63+
'status' => $status,
6364
])
6465
;
6566
}

0 commit comments

Comments
 (0)