account refactor
This commit is contained in:
@@ -48,11 +48,7 @@ readonly class RecordService
|
||||
string $uploadFromUrl = "",
|
||||
): string
|
||||
{
|
||||
$schema = $this->channelService->channel->schemas->where("name", $schemaName)->first();
|
||||
|
||||
if (empty($schema)) {
|
||||
throw new LucentException("The schema " . $schemaName . " does not exist");
|
||||
}
|
||||
$schema = $this->channelService->getSchema($schemaName)->get();
|
||||
|
||||
$formattedData = $this->inputFormatter->fill($schemaName, new RecordData($data));
|
||||
if (empty($formattedData["id"])) {
|
||||
|
||||
Reference in New Issue
Block a user