sveltel fixes
This commit is contained in:
@@ -6,7 +6,9 @@ use Illuminate\Support\Facades\DB;
|
||||
|
||||
class RecordRepo
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public static function create(Record $record): void
|
||||
{
|
||||
@@ -36,7 +38,7 @@ class RecordRepo
|
||||
/**
|
||||
* @param string[] $ids
|
||||
*/
|
||||
public static function deleteMany(
|
||||
public function deleteMany(
|
||||
array $ids,
|
||||
): void
|
||||
{
|
||||
|
||||
@@ -27,7 +27,8 @@ readonly class RecordService
|
||||
private ChannelService $channelService,
|
||||
private Validator $recordValidator,
|
||||
private Query $query,
|
||||
private InputFormatter $inputFormatter
|
||||
private InputFormatter $inputFormatter,
|
||||
private RecordRepo $recordRepo
|
||||
)
|
||||
{
|
||||
}
|
||||
@@ -213,7 +214,7 @@ readonly class RecordService
|
||||
array $recordsIds,
|
||||
): void
|
||||
{
|
||||
RecordRepo::deleteMany($recordsIds);
|
||||
$this->recordRepo->deleteMany($recordsIds);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user