fix! некорректная отправка id квартиры plan7

This commit is contained in:
developer 2026-04-16 10:04:53 +08:00
parent feb10c450b
commit 1b86db73f1

View File

@ -9,8 +9,7 @@
use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Facades\Log;
trait Bitrixable trait Bitrixable
{ {
@ -57,6 +56,7 @@ protected static function create(array $attributes = [])
catch (\Exception $e) catch (\Exception $e)
{ {
$model->delete(); $model->delete();
Log::error($e->getMessage());
throw new \Exception('Error of bitrix identifier getter'); throw new \Exception('Error of bitrix identifier getter');
} }
} }