Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed May 2, 2022
1 parent c0f7b1d commit 725715a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Internal/Repository/TransferRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ public function findBy(TransferQueryInterface $query): array
public function updateStatusByIds(string $status, array $ids): int
{
return $this->transfer->newQuery()
->whereKey($ids)
->toBase()
->whereIn($this->transfer->getKeyName(), $ids)
->update([
'status' => $status,
'status_last' => DB::raw('status'),
'status' => $status,
])
;
}
Expand Down

0 comments on commit 725715a

Please sign in to comment.