File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 88use Bavix \Wallet \Internal \Query \TransferQueryInterface ;
99use Bavix \Wallet \Internal \Transform \TransferDtoTransformerInterface ;
1010use Bavix \Wallet \Models \Transfer ;
11- use Illuminate \Support \Facades \DB ;
1211
1312final class TransferRepository implements TransferRepositoryInterface
1413{
@@ -55,11 +54,13 @@ public function findBy(TransferQueryInterface $query): array
5554 */
5655 public function updateStatusByIds (string $ status , array $ ids ): int
5756 {
57+ $ connection = $ this ->transfer ->getConnection ();
58+
5859 return $ this ->transfer ->newQuery ()
5960 ->toBase ()
6061 ->whereIn ($ this ->transfer ->getKeyName (), $ ids )
6162 ->update ([
62- 'status_last ' => DB :: raw ('status ' ),
63+ 'status_last ' => $ connection -> raw ('status ' ),
6364 'status ' => $ status ,
6465 ])
6566 ;
You can’t perform that action at this time.
0 commit comments