Форматирование
This commit is contained in:
@@ -14,6 +14,7 @@ class Report extends Model
|
||||
const METRIC_BED_DAYS_ID = 18;
|
||||
|
||||
protected $primaryKey = 'report_id';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
@@ -137,9 +138,9 @@ class Report extends Model
|
||||
|
||||
// Сохраняем результат как метрику
|
||||
MetrikaResult::updateOrCreate([
|
||||
'rf_report_id' => $this->report_id,
|
||||
'rf_metrika_item_id' => self::METRIC_BED_DAYS_ID,
|
||||
],
|
||||
'rf_report_id' => $this->report_id,
|
||||
'rf_metrika_item_id' => self::METRIC_BED_DAYS_ID,
|
||||
],
|
||||
[
|
||||
'value' => $avgBedDays,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user