fix! некорректная отправка id квартиры plan7
This commit is contained in:
parent
feb10c450b
commit
1b86db73f1
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user