Update webcam url on import
This commit is contained in:
@@ -202,6 +202,8 @@ class SnowreportImportService implements SingletonInterface
|
|||||||
$snowreport->addWebcam($webcam);
|
$snowreport->addWebcam($webcam);
|
||||||
} else {
|
} else {
|
||||||
$webcam = $result->getFirst();
|
$webcam = $result->getFirst();
|
||||||
|
$webcam->setUrl((string) $item->url);
|
||||||
|
$webcam->setName((string) $item->dt);
|
||||||
$webcam->setAvailable((string) $item->verf === 'true');
|
$webcam->setAvailable((string) $item->verf === 'true');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user