sveltel fixes

This commit is contained in:
2023-10-06 18:47:50 +03:00
parent 9bbe5ee9b4
commit 0eaf410090
28 changed files with 361 additions and 218 deletions
+4 -2
View File
@@ -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
{
+3 -2
View File
@@ -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);
}